Skip to content

Commit 6a3f5a4

Browse files
doc: add 4.24.8 to UPGRADE, with instructions for PHPStan
1 parent 4690279 commit 6a3f5a4

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)