1 | <?php |
||||||
2 | |||||||
3 | |||||||
4 | namespace PHPSTORM_META { |
||||||
5 | |||||||
6 | use Psr\Container\ContainerInterface as PsrContainerInterface; |
||||||
7 | use Psr\Http\Message\ServerRequestInterface; |
||||||
8 | use PSR7Session\Http\SessionMiddleware; |
||||||
0 ignored issues
–
show
|
|||||||
9 | use PSR7Session\Session\SessionInterface; |
||||||
0 ignored issues
–
show
The type
PSR7Session\Session\SessionInterface was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||
10 | |||||||
11 | // PSR-11 Container Interface |
||||||
12 | override(PsrContainerInterface::get(0), |
||||||
0 ignored issues
–
show
The function
override was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
13 | map([ |
||||||
0 ignored issues
–
show
The function
map was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
14 | '' => '@', |
||||||
15 | ]) |
||||||
16 | ); |
||||||
17 | // PSR-7 requests attributes; e.g. PSR-7 Storage-less HTTP Session |
||||||
18 | override(ServerRequestInterface::getAttribute(0), |
||||||
19 | map([ |
||||||
20 | SessionMiddleware::SESSION_ATTRIBUTE instanceof SessionInterface, |
||||||
21 | ]) |
||||||
22 | ); |
||||||
23 | } |
||||||
24 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths