DigitalState /
Cases
| 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 Loading history...
|
|||
| 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 Loading history...
|
|||
| 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 Loading history...
|
|||
| 10 | |||
| 11 | /** |
||
| 12 | * Class CaseTranslation |
||
| 13 | * |
||
| 14 | * @ORM\Entity |
||
| 15 | * @ORM\Table(name="app_case_trans") |
||
| 16 | */ |
||
| 17 | class CaseTranslation implements Translation |
||
| 18 | { |
||
| 19 | 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 Loading history...
|
|||
| 20 | |||
| 21 | 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 Loading history...
|
|||
| 22 | 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 Loading history...
|
|||
| 23 | |||
| 24 | /** |
||
| 25 | * Returns the translatable entity class name. |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public static function getTranslatableEntityClass() |
||
| 30 | { |
||
| 31 | return 'App\Entity\CaseEntity'; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | * @ORM\Column(name="title", type="string", length=255, nullable=true) |
||
| 37 | */ |
||
| 38 | private $title; |
||
|
0 ignored issues
–
show
|
|||
| 39 | |||
| 40 | /** |
||
| 41 | * @var string |
||
| 42 | * @ORM\Column(name="data", type="json_array") |
||
| 43 | */ |
||
| 44 | private $data; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Constructor |
||
| 48 | */ |
||
| 49 | public function __construct() |
||
| 50 | { |
||
| 51 | $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.. Loading history...
|
|||
| 52 | } |
||
| 53 | } |
||
| 54 |
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