We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f5649b + 68065ae commit 2f28cebCopy full SHA for 2f28ceb
Behavioral/ChainOfResponsibilities/Handler.php
@@ -29,11 +29,9 @@ final public function handle(RequestInterface $request)
29
{
30
$processed = $this->processing($request);
31
32
- if ($processed === null) {
+ if ($processed === null && $this->successor !== null) {
33
// the request has not been processed by this handler => see the next
34
- if ($this->successor !== null) {
35
- $processed = $this->successor->handle($request);
36
- }
+ $processed = $this->successor->handle($request);
37
}
38
39
return $processed;
0 commit comments