| 1 | <?php  | 
            ||
| 12 | class FrameRunner  | 
            ||
| 13 | { | 
            ||
| 14 | |||
| 15 | /* @var runner */  | 
            ||
| 16 | protected $next;  | 
            ||
| 17 | |||
| 18 | protected $middleware;  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * Creates a runner based on an array of middleware  | 
            ||
| 22 | *  | 
            ||
| 23 | * @param array $middlewares  | 
            ||
| 24 | * @return FrameRunner  | 
            ||
| 25 | */  | 
            ||
| 26 | 1 | public static function factory(array $middlewares = array())  | 
            |
| 34 | |||
| 35 | 5 | public function __construct(callable $middleware)  | 
            |
| 39 | |||
| 40 | /**  | 
            ||
| 41 | * Returns a new FrameRunner  | 
            ||
| 42 | * @param callable $middleware  | 
            ||
| 43 | * @return FrameRunner  | 
            ||
| 44 | */  | 
            ||
| 45 | 3 | public function add(callable $middleware)  | 
            |
| 52 | |||
| 53 | /**  | 
            ||
| 54 | * @param ServerRequestInterface $request  | 
            ||
| 55 | * @return ResponseInterface  | 
            ||
| 56 | * @throws \Exception  | 
            ||
| 57 | */  | 
            ||
| 58 | public function __invoke(ServerRequestInterface $request)  | 
            ||
| 73 | }  | 
            ||
| 74 | 
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..