ExtendReader.php$0 ➔ __construct()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A ExtendReader.php$0 ➔ __call() 0 1 1
1
<?php
2
3
namespace WebStream\Annotation\Reader\Extend;
4
5
use WebStream\DI\Injector;
0 ignored issues
show
Bug introduced by
The type WebStream\DI\Injector 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...
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
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...
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
Coding Style introduced by
Closing brace must not be followed by any comment or statement on the same line
Loading history...
Coding Style introduced by
The closing brace for the class must go on the next line after the body
Loading history...
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...
28
    }
29
30
    /**
31
     * アノテーション情報リストを返却する
32
     * @param array<object> アノテーション情報リスト
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
     */
34
    abstract public function getAnnotationInfo();
35
36
    /**
37
     * read event
38
     * @param array<string> アノテーション情報リスト
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
     */
40
    abstract public function read(array $annotationInfoList);
41
}
42