1 | <?php |
||
2 | |||
3 | namespace App\Entity; |
||
4 | |||
5 | use Ds\Component\Model\Attribute\Accessor; |
||
0 ignored issues
–
show
|
|||
6 | use Ds\Component\Translation\Model\Type\Translation; |
||
0 ignored issues
–
show
The type
Ds\Component\Translation\Model\Type\Translation 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 ![]() |
|||
7 | use Knp\DoctrineBehaviors\Model as Behavior; |
||
0 ignored issues
–
show
The type
Knp\DoctrineBehaviors\Model 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 ![]() |
|||
8 | |||
9 | use Doctrine\ORM\Mapping as ORM; |
||
0 ignored issues
–
show
The type
Doctrine\ORM\Mapping 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 ![]() |
|||
10 | |||
11 | /** |
||
12 | * Class ScenarioTranslation |
||
13 | * |
||
14 | * @ORM\Entity |
||
15 | * @ORM\Table(name="app_scenario_trans") |
||
16 | * @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
||
17 | */ |
||
18 | class ScenarioTranslation implements Translation |
||
19 | { |
||
20 | use Behavior\Translatable\Translation; |
||
0 ignored issues
–
show
The type
Knp\DoctrineBehaviors\Mo...ranslatable\Translation 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 ![]() |
|||
21 | |||
22 | use Accessor\Title; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\Title 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 ![]() |
|||
23 | use Accessor\Description; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\Description 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 ![]() |
|||
24 | use Accessor\Presentation; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\Presentation 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 ![]() |
|||
25 | use Accessor\Data; |
||
0 ignored issues
–
show
The type
Ds\Component\Model\Attribute\Accessor\Data 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 ![]() |
|||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | * @ORM\Column(name="title", type="string", length=255, nullable=true) |
||
30 | */ |
||
31 | private $title; |
||
0 ignored issues
–
show
|
|||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | * @ORM\Column(name="description", type="text", nullable=true) |
||
36 | */ |
||
37 | private $description; |
||
0 ignored issues
–
show
|
|||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | * @ORM\Column(name="presentation", type="text", nullable=true) |
||
42 | */ |
||
43 | private $presentation; |
||
0 ignored issues
–
show
|
|||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | * @ORM\Column(name="data", type="json_array") |
||
48 | */ |
||
49 | private $data; |
||
50 | |||
51 | /** |
||
52 | * Constructor |
||
53 | */ |
||
54 | public function __construct() |
||
55 | { |
||
56 | $this->data = []; |
||
0 ignored issues
–
show
It seems like
array() of type array is incompatible with the declared type string of property $data .
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.. ![]() |
|||
57 | } |
||
58 | } |
||
59 |
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