Showing 67 of 67 total issues
Saw an @param annotation for code,
but it was not found in the param list of function setDefaultExceptionHandler(\Circuit\Interfaces\ExceptionHandler $handler) : \Circuit\Router
Open
Open
* @param string $code HTTP code handler is responsible for
- Exclude checks
Assigning \Psr\Container\ContainerInterface
to property but \Circuit\ControllerParams->container
is \Circuit\Psr\Container\ContainerInterface
Open
Open
$this->container = $container;
- Exclude checks
Returning type \Symfony\Component\HttpFoundation\JsonResponse
but process()
is declared to return \Symfony\Component\HttpFoundation\Response
Open
Open
return new JsonResponse(
- Exclude checks
Possibly zero references to use statement for classlike/namespace Response
(\Symfony\Component\HttpFoundation\Response)
Open
Open
use Symfony\Component\HttpFoundation\Response;
- Exclude checks
Doc-block of $middleware
in get
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Doc-block of $container
in setServiceContainer
contains phpdoc param type \Circuit\Psr\Container\ContainerInterface
which is incompatible with the param type \Psr\Container\ContainerInterface
declared in the signature Open
Open
* @param Psr\Container\ContainerInterface $container Service container passed to controller constructor
- Exclude checks
Argument 2 (args)
is string
but \Circuit\Router::log()
takes mixed[]
defined at /code/src/Router.php:309
Open
Open
$this->log("Router: Calling Middleware: %s", $next);
- Exclude checks
mixed[] $args
is not variadic in comment, but variadic in param (...$args)
Open
Open
* @param mixed[] $args Data to pass to sprintf
- Exclude checks
Doc-block of $middleware
in addRoute
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Doc-block of $middleware
in addGroup
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware Middleware to be added to all routes in this group
- Exclude checks
Argument 2 (args)
is class-string
but \Circuit\Router::log()
takes mixed[]
defined at /code/src/Router.php:309
Open
Open
$this->log("Router: Calling Middleware: %s", get_class($next));
- Exclude checks
Saw an @param annotation for hander,
but it was not found in the param list of function setExceptionHandler(string $code, \Circuit\Interfaces\ExceptionHandler $handler) : \Circuit\Router
Open
Open
* @param ExceptionHandler $hander Handler
- Exclude checks
Doc-block of $middleware
in head
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Possibly zero references to use statement for classlike/namespace Router
(\Circuit\Router)
Open
Open
use Circuit\Router;
- Exclude checks
Argument 5 (container)
is \Circuit\Psr\Container\ContainerInterface
but \Circuit\ControllerParams::__construct()
takes \Psr\Container\ContainerInterface
defined at /code/src/ControllerParams.php:36
Open
Open
$params = new ControllerParams($uri, $this->controllerClass, $this->controllerMethod, $args, $router->getServiceContainer());
- Exclude checks
Doc-block of $middleware
in post
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Doc-block of $middleware
in delete
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $middleware List of middleware (Middleware objects or named middleware) to add to
- Exclude checks
Saw an @param annotation for hander,
but it was not found in the param list of function setDefaultExceptionHandler(\Circuit\Interfaces\ExceptionHandler $handler) : \Circuit\Router
Open
Open
* @param ExceptionHandler $hander Handler
- Exclude checks
Doc-block of $stack
in addMiddleware
contains phpdoc param type \Circuit\Interfaces\Middleware
which is incompatible with the param type array
declared in the signature Open
Open
* @param Middleware|string[] $stack Middleware to add to this route.
- Exclude checks
Possibly zero references to use statement for classlike/namespace Request
(\Symfony\Component\HttpFoundation\Request)
Open
Open
use Symfony\Component\HttpFoundation\Request;
- Exclude checks