Tests #41
Annotations
10 errors
Run php-actions/phpstan@v3:
src/Actions/Action.php#L13
Abstract class Benzine\Actions\Action should start with "Abstract" prefix.
|
Run php-actions/phpstan@v3:
src/Enums/EnumEnhancement.php#L9
Trait Benzine\Enum\EnumEnhancements should end with "Trait" suffix.
|
Run php-actions/phpstan@v3:
src/Router/Router.php#L32
Call to deprecated method registerLoader() of class Doctrine\Common\Annotations\AnnotationRegistry:
This method is deprecated and will be removed in
doctrine/annotations 2.0. Annotations will be autoloaded in 2.0.
|
Run php-actions/phpstan@v3:
src/Router/Router.php#L34
Function loadRoutesFromAnnotations() has an unused variable $reader.
|
Run php-actions/phpstan@v3:
src/Services/SessionService.php#L151
In method "Benzine\Services\SessionService::has", you should not use the $_SESSION superglobal. You should instead rely on your framework that provides you with a "request" object (for instance a PSR-7 RequestInterface or a Symfony Request). More info: http://bit.ly/nosuperglobals
|
Run php-actions/phpstan@v3:
src/Services/SessionService.php#L158
In method "Benzine\Services\SessionService::get", you should not use the $_SESSION superglobal. You should instead rely on your framework that provides you with a "request" object (for instance a PSR-7 RequestInterface or a Symfony Request). More info: http://bit.ly/nosuperglobals
|
Run php-actions/phpstan@v3:
src/Services/SessionService.php#L159
In method "Benzine\Services\SessionService::get", you should not use the $_SESSION superglobal. You should instead rely on your framework that provides you with a "request" object (for instance a PSR-7 RequestInterface or a Symfony Request). More info: http://bit.ly/nosuperglobals
|
Run php-actions/phpstan@v3:
src/Services/SessionService.php#L169
In method "Benzine\Services\SessionService::getAll", you should not use the $_SESSION superglobal. You should instead rely on your framework that provides you with a "request" object (for instance a PSR-7 RequestInterface or a Symfony Request). More info: http://bit.ly/nosuperglobals
|
Run php-actions/phpstan@v3:
src/Services/SessionService.php#L169
In method "Benzine\Services\SessionService::getAll", you should not use the $_SESSION superglobal. You should instead rely on your framework that provides you with a "request" object (for instance a PSR-7 RequestInterface or a Symfony Request). More info: http://bit.ly/nosuperglobals
|
Run php-actions/phpstan@v3:
src/Services/SessionService.php#L171
In method "Benzine\Services\SessionService::getAll", you should not use the $_SESSION superglobal. You should instead rely on your framework that provides you with a "request" object (for instance a PSR-7 RequestInterface or a Symfony Request). More info: http://bit.ly/nosuperglobals
|
Loading