Tests #43
Annotations
11 errors
PHPUnit
Process completed with exit code 2.
|
PHPStan:
src/Actions/Action.php#L13
Abstract class Benzine\Actions\Action should start with "Abstract" prefix.
|
PHPStan:
src/Enums/EnumEnhancement.php#L9
Trait Benzine\Enum\EnumEnhancements should end with "Trait" suffix.
|
PHPStan:
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.
|
PHPStan:
src/Router/Router.php#L34
Function loadRoutesFromAnnotations() has an unused variable $reader.
|
PHPStan:
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
|
PHPStan:
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
|
PHPStan:
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
|
PHPStan:
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
|
PHPStan:
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
|
PHPStan:
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
|