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

ExtendReader.php$0 ➔ __construct()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 0
cts 0
cp 0
crap 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A ExtendReader.php$0 ➔ __call() 0 1 1
1
<?php
2
namespace WebStream\Annotation\Reader\Extend;
3
4
use WebStream\DI\Injector;
5
6
/**
7
 * ExtendReader
8
 * @author Ryuichi TANAKA.
9
 * @since 2017/01/08
10
 * @version 0.4
11
 */
12
abstract class ExtendReader
13
{
14
    use Injector;
15
16
    /**
17
     * @var Psr\Log\LoggerInterface
0 ignored issues
show
Bug introduced by
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. 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
     */
24
    public function __construct()
25
    {
26
        $this->logger = new class() { function __call($name, $args) {} };
0 ignored issues
show
Documentation Bug introduced by
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...
27 22
    }
28
29
    /**
30
     * アノテーション情報リストを返却する
31
     * @param array<object> アノテーション情報リスト
32
     */
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...
33
    abstract public function getAnnotationInfo();
34
35
    /**
36
     * read event
37
     * @param array<string> アノテーション情報リスト
38
     */
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...
39
    abstract public function read(array $annotationInfoList);
40
}
41