instrumentTypes = (array) $instrumentType; } public function accepts(Instrument $instrument, InstrumentationScopeInterface $instrumentationScope): bool { return in_array($instrument->type, $this->instrumentTypes, true); } }