|
1
|
|
|
<?php |
|
2
|
|
|
declare(strict_types=1); |
|
3
|
|
|
|
|
4
|
|
|
namespace Jaxon\Attributes\Tests\Attr\Ajax; |
|
5
|
|
|
|
|
6
|
|
|
use Jaxon\Attributes\Attribute\Inject; |
|
7
|
|
|
use Jaxon\Attributes\Tests\Attr\FuncComponent; |
|
8
|
|
|
use Jaxon\Attributes\Tests\Service\ColorService; |
|
|
|
|
|
|
9
|
|
|
|
|
10
|
|
|
class PropertyAttribute extends FuncComponent |
|
11
|
|
|
{ |
|
12
|
|
|
protected ColorService $colorService; |
|
13
|
|
|
|
|
14
|
|
|
protected FontService $fontService; |
|
15
|
|
|
|
|
16
|
|
|
protected \Jaxon\Attributes\Tests\Service\TextService $textService; |
|
|
|
|
|
|
17
|
|
|
|
|
18
|
|
|
#[Inject(ColorService::class)] |
|
19
|
|
|
protected $colorService1; |
|
20
|
|
|
|
|
21
|
|
|
#[Inject(FontService::class)] |
|
22
|
|
|
protected $fontService1; |
|
23
|
|
|
|
|
24
|
|
|
#[Inject('\Jaxon\Attributes\Tests\Service\TextService')] |
|
25
|
|
|
protected $textService1; |
|
26
|
|
|
|
|
27
|
|
|
#[Inject] |
|
28
|
|
|
protected ColorService $colorService2; |
|
29
|
|
|
|
|
30
|
|
|
#[Inject] |
|
31
|
|
|
protected FontService $fontService2; |
|
32
|
|
|
|
|
33
|
|
|
#[Inject] |
|
34
|
|
|
protected \Jaxon\Attributes\Tests\Service\TextService $textService2; |
|
35
|
|
|
|
|
36
|
|
|
#[Inject(type: ColorService::class)] |
|
37
|
|
|
protected $colorService3; |
|
38
|
|
|
|
|
39
|
|
|
#[Inject(type: FontService::class)] |
|
40
|
|
|
protected $fontService3; |
|
41
|
|
|
|
|
42
|
|
|
#[Inject(type: '\Jaxon\Attributes\Tests\Service\TextService')] |
|
43
|
|
|
protected $textService3; |
|
44
|
|
|
|
|
45
|
|
|
#[Inject(FontService::class, 'fontService')] |
|
46
|
|
|
protected $errorTwoParams; |
|
47
|
|
|
|
|
48
|
|
|
#[Inject(attr: 'fontService')] |
|
49
|
|
|
protected $errorDiAttr; |
|
50
|
|
|
|
|
51
|
|
|
#[Inject] |
|
52
|
|
|
#[Inject(FontService::class)] |
|
53
|
|
|
protected $errorTwoDi; |
|
54
|
|
|
|
|
55
|
|
|
#[Inject(attr: 'colorService')] |
|
56
|
|
|
#[Inject(attr: 'fontService')] |
|
57
|
|
|
#[Inject(attr: 'textService')] |
|
58
|
|
|
public function attrVar() |
|
59
|
|
|
{ |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
|
|
#[Inject(attr: 'colorService')] |
|
63
|
|
|
#[Inject(attr: 'fontService')] |
|
64
|
|
|
#[Inject(attr: 'textService')] |
|
65
|
|
|
public function attrDbVar() |
|
66
|
|
|
{ |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
public function attrDi() |
|
70
|
|
|
{ |
|
71
|
|
|
} |
|
72
|
|
|
|
|
73
|
|
|
#[Inject(type: ColorService::class)] |
|
74
|
|
|
public function errorDiClass() |
|
75
|
|
|
{ |
|
76
|
|
|
} |
|
77
|
|
|
} |
|
78
|
|
|
|
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