mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 20:20:15 +02:00
PHP8
This commit is contained in:
@@ -6,11 +6,8 @@ use Psr\Http\Message\RequestInterface;
|
||||
|
||||
abstract class Handler
|
||||
{
|
||||
private ?Handler $successor = null;
|
||||
|
||||
public function __construct(Handler $handler = null)
|
||||
public function __construct(private ?Handler $successor = null)
|
||||
{
|
||||
$this->successor = $handler;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user