| 1 | <?php |
||
| 8 | class ClassNameCommandFilter implements CommandFilterInterface |
||
| 9 | { |
||
| 10 | private $classNames; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * ClassNameCommandFilter constructor. |
||
| 14 | * @param StringLiteral[] $classNames |
||
| 15 | */ |
||
| 16 | public function __construct(StringLiteral ...$classNames) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @inheritdoc |
||
| 23 | */ |
||
| 24 | public function matches(AuthorizableCommandInterface $command) |
||
| 34 | } |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.