brokencube/circuit

View on GitHub

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

     * @param string $code HTTP code handler is responsible for
Severity: Info
Found in src/Router.php by phan

Assigning \Psr\Container\ContainerInterface to property but \Circuit\ControllerParams->container is \Circuit\Psr\Container\ContainerInterface
Open

        $this->container = $container;
Severity: Minor
Found in src/ControllerParams.php by phan

Returning type \Symfony\Component\HttpFoundation\JsonResponse but process() is declared to return \Symfony\Component\HttpFoundation\Response
Open

                return new JsonResponse(
Severity: Minor
Found in src/HandlerContainer.php by phan

Possibly zero references to use statement for classlike/namespace Response (\Symfony\Component\HttpFoundation\Response)
Open

use Symfony\Component\HttpFoundation\Response;
Severity: Minor
Found in src/Interfaces/Controller.php by phan

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

     * @param Middleware|string[] $middleware  List of middleware (Middleware objects or named middleware) to add to
Severity: Minor
Found in src/RouteCollector.php by phan

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

     * @param Psr\Container\ContainerInterface $container Service container passed to controller constructor
Severity: Minor
Found in src/Router.php by phan

Argument 2 (args) is string but \Circuit\Router::log() takes mixed[] defined at /code/src/Router.php:309
Open

            $this->log("Router: Calling Middleware: %s", $next);
Severity: Minor
Found in src/Router.php by phan

mixed[] $args is not variadic in comment, but variadic in param (...$args)
Open

     * @param mixed[] $args Data to pass to sprintf
Severity: Info
Found in src/Router.php by phan

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

     * @param Middleware|string[] $middleware  List of middleware (Middleware objects or named middleware) to add to
Severity: Minor
Found in src/RouteCollector.php by phan

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

     * @param Middleware|string[] $middleware  Middleware to be added to all routes in this group
Severity: Minor
Found in src/RouteCollector.php by phan

Argument 2 (args) is class-string but \Circuit\Router::log() takes mixed[] defined at /code/src/Router.php:309
Open

            $this->log("Router: Calling Middleware: %s", get_class($next));
Severity: Minor
Found in src/Router.php by phan

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

     * @param ExceptionHandler $hander Handler
Severity: Info
Found in src/Router.php by phan

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

     * @param Middleware|string[] $middleware  List of middleware (Middleware objects or named middleware) to add to
Severity: Minor
Found in src/RouteCollector.php by phan

Possibly zero references to use statement for classlike/namespace Router (\Circuit\Router)
Open

use Circuit\Router;
Severity: Minor
Found in src/ControllerParams.php by phan

Argument 5 (container) is \Circuit\Psr\Container\ContainerInterface but \Circuit\ControllerParams::__construct() takes \Psr\Container\ContainerInterface defined at /code/src/ControllerParams.php:36
Open

        $params = new ControllerParams($uri, $this->controllerClass, $this->controllerMethod, $args, $router->getServiceContainer());
Severity: Minor
Found in src/HandlerContainer.php by phan

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

     * @param Middleware|string[] $middleware  List of middleware (Middleware objects or named middleware) to add to
Severity: Minor
Found in src/RouteCollector.php by phan

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

     * @param Middleware|string[] $middleware  List of middleware (Middleware objects or named middleware) to add to
Severity: Minor
Found in src/RouteCollector.php by phan

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

     * @param ExceptionHandler $hander Handler
Severity: Info
Found in src/Router.php by phan

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

     * @param Middleware|string[] $stack Middleware to add to this route.
Severity: Minor
Found in src/HandlerContainer.php by phan

Possibly zero references to use statement for classlike/namespace Request (\Symfony\Component\HttpFoundation\Request)
Open

use Symfony\Component\HttpFoundation\Request;
Severity: Minor
Found in src/Interfaces/Controller.php by phan
Severity
Category
Status
Source
Language