Passed
Push — master ( 51dcfe...4ee661 )
by Ryuichi
02:30
created

anonymous//Base/Annotation.php$0   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 1
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 1
rs 10
c 0
b 0
f 0
ccs 0
cts 0
cp 0
wmc 1
1
<?php
2
namespace WebStream\Annotation\Base;
3
4
use WebStream\DI\Injector;
5
6
/**
7
 * Annotaion
8
 * @author Ryuichi TANAKA.
9
 * @since 2014/05/11
10
 * @version 0.7
11
 */
12
abstract class Annotation
13
{
14
    use Injector;
15
16
    /**
17
     * @var Psr\Log\LoggerInterface
0 ignored issues
show
Bug introduced by
The type WebStream\Annotation\Base\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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
18
     */
19
    protected $logger;
20
21
    /**
22
     * constructor
23
     * @param array<string> アノテーションリスト
24
     */
0 ignored issues
show
Documentation Bug introduced by
The doc comment アノテーションリスト at position 0 could not be parsed: Unknown type name 'アノテーションリスト' at position 0 in アノテーションリスト.
Loading history...
25
    public function __construct(array $annotations = [])
26
    {
27
        $this->logger = new class() { function __call($name, $args) {} };
0 ignored issues
show
Documentation Bug introduced by
It seems like new ClassNode() of type anonymous//Base/Annotation.php$0 is incompatible with the declared type WebStream\Annotation\Base\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 137
        $this->onInject($annotations);
29 137
    }
30
31
    /**
32
     * Injected event
33
     * @param array<string> アノテーションコンテナ
34
     */
0 ignored issues
show
Documentation Bug introduced by
The doc comment アノテーションコンテナ at position 0 could not be parsed: Unknown type name 'アノテーションコンテナ' at position 0 in アノテーションコンテナ.
Loading history...
35
    abstract public function onInject(array $annotations);
36
}
37