cakephp / app

CakePHP application template
370 stars 391 forks source link

Bug in new version of app for BeforeFilter / BeforeRender #923

Closed cpierce closed 1 year ago

cpierce commented 1 year ago

Description


  Line   Controller/ErrorController.php
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
  44     Method App\Controller\ErrorController::beforeFilter() has parameter $event with generic interface Cake\Event\EventInterface but does not specify its types: TSubject
         💡 You can turn this off by setting checkGenericClassInNonGenericObjectType: false in your phpstan.neon.
  54     Method App\Controller\ErrorController::beforeRender() has parameter $event with generic interface Cake\Event\EventInterface but does not specify its types: TSubject
         💡 You can turn this off by setting checkGenericClassInNonGenericObjectType: false in your phpstan.neon.
  67     Method App\Controller\ErrorController::afterFilter() has parameter $event with generic interface Cake\Event\EventInterface but does not specify its types: TSubject
         💡 You can turn this off by setting checkGenericClassInNonGenericObjectType: false in your phpstan.neon.
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------```

This is what you get with the new version of cakephp installed and running phpstan

### CakePHP Version

4.4.8

### PHP Version

7.4 and above