| 1 | <?php |
||
| 12 | abstract class Annotation |
||
| 13 | { |
||
| 14 | use Injector; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Psr\Log\LoggerInterface |
||
| 18 | */ |
||
| 19 | protected $logger; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * constructor |
||
| 23 | * @param array<string> アノテーションリスト |
||
| 24 | */ |
||
| 25 | public function __construct(array $annotations = []) |
||
| 26 | { |
||
| 27 | $this->logger = new class() { function __call($name, $args) {} }; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Injected event |
||
| 33 | * @param array<string> アノテーションコンテナ |
||
| 34 | */ |
||
| 35 | abstract public function onInject(array $annotations); |
||
| 36 | } |
||
| 37 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..