Skip to content

Commit 566326d

Browse files
committed
minor #7008 doc: add 4.24.8 to UPGRADE with instructions for PHPStan (alexislefebvre)
This PR was merged into the 4.x branch. Discussion ---------- doc: add 4.24.8 to UPGRADE with instructions for PHPStan See: - #6984 (comment) Commits ------- 6a3f5a4 doc: add 4.24.8 to UPGRADE, with instructions for PHPStan
2 parents 4d7d450 + 6a3f5a4 commit 566326d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

UPGRADE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ of the EasyAdmin application.
1414
// After
1515
{{ ea().i18n.translationDomain }}
1616

17+
18+
EasyAdmin 4.24.8
19+
----------------
20+
21+
PHPStan will report an error if a class extends `AbstractCrudController` without declaring the type of the entity:
22+
23+
> Class App\Controller\Admin\UserCrudController extends generic class EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController but does not specify its types: TEntity
24+
25+
To avoid this issue, update the controller like this:
26+
27+
```diff
28+
+ /**
29+
+ * @extends AbstractCrudController<User>
30+
+ */
31+
class UserCrudController extends AbstractCrudController
32+
{
33+
```
34+
1735
EasyAdmin 4.22.0
1836
----------------
1937

0 commit comments

Comments
 (0)