Skip to content

Commit 54d9a3d

Browse files
committed
Changed StatelessFetchExceptionHandler to be non-final so inheritors can
benefit from its performance optimizations.
1 parent 049e80e commit 54d9a3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Connector/FetchExceptionHandler/StatelessFetchExceptionHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* Contains a fetch exception handler that does not have private state and therefore does not require initialization.
66
*/
7-
final class StatelessFetchExceptionHandler implements FetchExceptionHandler
7+
class StatelessFetchExceptionHandler implements FetchExceptionHandler
88
{
99
private $handler;
1010

@@ -13,12 +13,12 @@ public function __construct(callable $handler)
1313
$this->handler = $handler;
1414
}
1515

16-
public function initialize()
16+
final public function initialize()
1717
{
1818
// Intentionally empty.
1919
}
2020

21-
public function __invoke(\Exception $exception)
21+
final public function __invoke(\Exception $exception)
2222
{
2323
call_user_func($this->handler, $exception);
2424
}

0 commit comments

Comments
 (0)