webstream-framework /
Annotation
| 1 | <?php |
||
| 2 | |||
| 3 | namespace WebStream\Annotation\Reader\Extend; |
||
| 4 | |||
| 5 | use WebStream\DI\Injector; |
||
|
0 ignored issues
–
show
|
|||
| 6 | |||
| 7 | /** |
||
| 8 | * ExtendReader |
||
| 9 | * @author Ryuichi TANAKA. |
||
| 10 | * @since 2017/01/08 |
||
| 11 | * @version 0.4 |
||
| 12 | */ |
||
| 13 | abstract class ExtendReader |
||
| 14 | { |
||
| 15 | use Injector; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Psr\Log\LoggerInterface |
||
|
0 ignored issues
–
show
The type
WebStream\Annotation\Rea...Psr\Log\LoggerInterface was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 19 | */ |
||
| 20 | protected $logger; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * constructor |
||
| 24 | */ |
||
| 25 | 24 | public function __construct() |
|
| 26 | { |
||
| 27 | 24 | $this->logger = new class () { public function __call($name, $args) {} }; |
|
|
0 ignored issues
–
show
It seems like
new ClassNode() of type anonymous//Reader/Extend/ExtendReader.php$0 is incompatible with the declared type WebStream\Annotation\Rea...Psr\Log\LoggerInterface of property $logger.
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.. Loading history...
|
|||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * アノテーション情報リストを返却する |
||
| 32 | * @param array<object> アノテーション情報リスト |
||
|
0 ignored issues
–
show
|
|||
| 33 | */ |
||
| 34 | abstract public function getAnnotationInfo(); |
||
| 35 | |||
| 36 | /** |
||
| 37 | * read event |
||
| 38 | * @param array<string> アノテーション情報リスト |
||
|
0 ignored issues
–
show
|
|||
| 39 | */ |
||
| 40 | abstract public function read(array $annotationInfoList); |
||
| 41 | } |
||
| 42 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths