You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue but I am afraid it is more configuration problem at my level.
when I run phpstan, controller plugins are not recognized and appears as errors. Can be the ones from Laminas like identity() or flashMessenger() or the ones I have defined in my application.
Application is working and I have checked if modules like 'Laminas\Mvc\Plugin\Identity' and
'Laminas\Mvc\Plugin\FlashMessenger' are in the modules list in the config/application.config.php file.
here is my neon file: includes: - vendor\slam\phpstan-laminas-framework\extension.neon parameters: level: 1
here is the command I run as the root level of my app:
here is part of the output
`Note: Using configuration file D:\www\melliol\ern\phpstan.neon.
85/85 [============================] 100%
Line Controller\CollectionController.php
179 Call to an undefined method MyModule\Controller\CollectionController::translate().
185 Call to an undefined method MyModule\Controller\CollectionController::translate().
188 Call to an undefined method MyModule\Controller\CollectionController::identity().`
(....)
Line Controller\DirectoryController.php
151 Call to an undefined method MyModule\Controller\DirectoryController::acl().
169 Call to an undefined method MyModule\Controller\DirectoryController::acl().
197 Call to an undefined method MyModule\Controller\DirectoryController::displayFormErrorMessages().
(....)`
can you tell me what am i doing wrong ?
thank you in advance
The text was updated successfully, but these errors were encountered:
first, thank you for this nice module for Laminas
I have an issue but I am afraid it is more configuration problem at my level.
when I run phpstan, controller plugins are not recognized and appears as errors. Can be the ones from Laminas like identity() or flashMessenger() or the ones I have defined in my application.
Application is working and I have checked if modules like 'Laminas\Mvc\Plugin\Identity' and
'Laminas\Mvc\Plugin\FlashMessenger' are in the modules list in the config/application.config.php file.
here is my neon file:
includes: - vendor\slam\phpstan-laminas-framework\extension.neon parameters: level: 1
here is the command I run as the root level of my app:
vendor\bin\phpstan analyse vendor\MyVendor\MyModule\src --memory-limit 512M
here is part of the output
`Note: Using configuration file D:\www\melliol\ern\phpstan.neon.
85/85 [============================] 100%
Line Controller\CollectionController.php
179 Call to an undefined method MyModule\Controller\CollectionController::translate().
185 Call to an undefined method MyModule\Controller\CollectionController::translate().
188 Call to an undefined method MyModule\Controller\CollectionController::identity().`
(....)
Line Controller\DirectoryController.php
151 Call to an undefined method MyModule\Controller\DirectoryController::acl().
169 Call to an undefined method MyModule\Controller\DirectoryController::acl().
197 Call to an undefined method MyModule\Controller\DirectoryController::displayFormErrorMessages().
(....)`
can you tell me what am i doing wrong ?
thank you in advance
The text was updated successfully, but these errors were encountered: