Skip to content

Commit 4793bfa

Browse files
author
Cristoforo Cervino
committed
update phpstan
1 parent 938aaed commit 4793bfa

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

phpstan.neon

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@ parameters:
22
level: 8
33
checkMissingIterableValueType: false
44
treatPhpDocTypesAsCertain: false
5-
checkGenericClassInNonGenericObjectType: false
5+
checkGenericClassInNonGenericObjectType: false
6+
ignoreErrors:
7+
-
8+
identifier: missingType.iterableValue
9+
-
10+
identifier: missingType.generics

tests/Model/Employee.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class Employee extends Person
1313
{
1414
/** @var Collection<int, Paper> */
15-
#[ORM\OneToMany(Paper::class, mappedBy: 'employee')]
15+
#[ORM\OneToMany(targetEntity: Paper::class, mappedBy: 'employee')]
1616
private Collection $papers;
1717

1818
public function __construct()

tests/Model/Paper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Paper
2121
private ?string $name = null;
2222

2323
/** @var Collection<int, Employee> */
24-
#[ORM\OneToMany(Employee::class, mappedBy: 'papers')]
24+
#[ORM\OneToMany(targetEntity: Employee::class, mappedBy: 'papers')]
2525
private Collection $employees;
2626

2727
#[ORM\ManyToOne(Document::class)]

0 commit comments

Comments
 (0)