idealo/php-middleware-stack

View on GitHub
type safe Stack.php #113
Vsevolod Dolgopolov (aka Seva) authored a545045b
complete00:00:15
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
7
fixme
fixme engine documentation
8
phpcodesniffer
phpcodesniffer engine documentation
9
sonar-php
sonar-php engine documentation
View output
INFO: Java 1.8.0_322 Amazon.com Inc. (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: 8 files indexed
INFO: 1 source files to be analyzed
ERROR: Unable to parse file: /code/src/Stack.php
ERROR: Parse error at line 17 column 15:

 7: use Psr\Http\Message\ResponseInterface;
 8: use Psr\Http\Message\ServerRequestInterface;
 9: use Psr\Http\Server\MiddlewareInterface;
10: use Psr\Http\Server\RequestHandlerInterface;
11: 
12: class Stack implements RequestHandlerInterface
13: {
14:     /**
15:      * @var MiddlewareInterface[]
16:      */
17:     protected array $middlewares = [];
                  ^
18: 
19:     public function __construct(protected ResponseInterface $defaultResponse, MiddlewareInterface ...$middlewares)
20:     {
21:         $this->middlewares = $middlewares;
22:     }
23: 
24:     private function withoutMiddleware(MiddlewareInterface $middleware): RequestHandlerInterface
25:     {
26:         return new self(
27:             $this->defaultResponse,

INFO: 1/1 source files have been analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.235s
INFO: Final Memory: 11M/56M
INFO: ------------------------------------------------------------------------