1 | <?php |
||
31 | class HandlerStack implements HandlerStackInterface |
||
32 | { |
||
33 | /** |
||
34 | * A PSR-3 logger. |
||
35 | * |
||
36 | * @var LoggerInterface |
||
37 | */ |
||
38 | protected $logger; |
||
39 | |||
40 | /** |
||
41 | * The middleware stack, grouped by feed type. |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $stack; |
||
46 | |||
47 | /** |
||
48 | * Constructs a new instance of this class. |
||
49 | */ |
||
50 | public function __construct() |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | * |
||
64 | * @codingStandardsIgnoreStart |
||
65 | */ |
||
66 | public function append( |
||
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | * |
||
85 | * @codingStandardsIgnoreStart |
||
86 | */ |
||
87 | public function appendClosure( |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | * |
||
100 | * @codingStandardsIgnoreStart |
||
101 | */ |
||
102 | public function prepend( |
||
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | * |
||
121 | * @codingStandardsIgnoreStart |
||
122 | */ |
||
123 | public function prependClosure( |
||
132 | |||
133 | /** |
||
134 | * {@inheritdoc} |
||
135 | * |
||
136 | * @codingStandardsIgnoreStart |
||
137 | */ |
||
138 | public function invoke( |
||
167 | |||
168 | /** |
||
169 | * [debugStack description]. |
||
170 | * |
||
171 | * @return [type] [description] |
||
172 | */ |
||
173 | public function debugStack(): array |
||
190 | |||
191 | /** |
||
192 | * Validates the middleware and applies it to the right stack. |
||
193 | * |
||
194 | * @param callable $middleware The middleware to add to the stack. |
||
195 | * @param string|null $name A name for the middleware. Can be used with `pushBefore()` and `pushAfter()`. |
||
196 | * @param string|null $overrideType Override our best guess for which stack to apply the middleware to. By default |
||
197 | * the appropriate stack will be determined by which |
||
198 | * `SimplePie\Middleware\*\*Interface` the middleware extends from. If the |
||
199 | * middleware is a closure, this parameter is required. If the appropriate stack |
||
200 | * cannot be determined, a `SimplePie\Exception\MiddlewareException` exception |
||
201 | * will be thrown. |
||
202 | * @param callable $fn A callable which receives the stack by-reference as a parameter, and chooses |
||
203 | * how to add the middleware to that stack. |
||
204 | * |
||
205 | * @throws MiddlewareException |
||
206 | * |
||
207 | * @codingStandardsIgnoreStart |
||
208 | */ |
||
209 | protected function validateMiddleware( |
||
231 | |||
232 | /** |
||
233 | * Log that the registration of the middleware occurred. |
||
234 | * |
||
235 | * @param callable $middleware The middleware to add to the stack. |
||
236 | * @param string|null $name A name for the middleware. Can be used with `pushBefore()` and `pushAfter()`. |
||
237 | * @param string|null $overrideType Override our best guess for which stack to apply the middleware to. By default |
||
238 | * the appropriate stack will be determined by which |
||
239 | * `SimplePie\Middleware\*\*Interface` the middleware extends from. If the |
||
240 | * middleware is a closure, this parameter is required. If the appropriate stack |
||
241 | * cannot be determined, a `SimplePie\Exception\MiddlewareException` exception |
||
242 | * will be thrown. |
||
243 | * |
||
244 | * @codingStandardsIgnoreStart |
||
245 | */ |
||
246 | protected function logRegistration( |
||
259 | |||
260 | /** |
||
261 | * Generate the most appropriate error message based on the parameters that were passed. |
||
262 | * |
||
263 | * @param callable $middleware The middleware to add to the stack. |
||
264 | * @param string|null $name A name for the middleware. Can be used with `pushBefore()` and `pushAfter()`. |
||
265 | * @param string|null $overrideType Override our best guess for which stack to apply the middleware to. By default |
||
266 | * the appropriate stack will be determined by which |
||
267 | * `SimplePie\Middleware\*\*Interface` the middleware extends from. If the |
||
268 | * middleware is a closure, this parameter is required. If the appropriate stack |
||
269 | * cannot be determined, a `SimplePie\Exception\MiddlewareException` exception |
||
270 | * will be thrown. |
||
271 | * |
||
272 | * @return string |
||
273 | * |
||
274 | * @codingStandardsIgnoreStart |
||
275 | */ |
||
276 | protected function exceptionMessage( |
||
289 | } |
||
290 |
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..