From: Raphaƫl Gertz Date: Thu, 29 Feb 2024 13:03:18 +0000 (+0100) Subject: Php 8.x constructor style X-Git-Tag: 0.4.0~46 X-Git-Url: https://git.rapsys.eu/packbundle/commitdiff_plain/3f19569693532f327f62748da0b24d4f4071d70a?ds=sidebyside;hp=72fbddfee92e8573c8ea87b7e321b404d94ed566 Php 8.x constructor style --- diff --git a/Context/RequestStackContext.php b/Context/RequestStackContext.php index 343affd..366e167 100644 --- a/Context/RequestStackContext.php +++ b/Context/RequestStackContext.php @@ -18,24 +18,12 @@ use Symfony\Component\HttpFoundation\RequestStack; * {@inheritdoc} */ class RequestStackContext extends BaseRequestStackContext { - //RequestStack instance - private $requestStack; - - //Base path - private $basePath; - /** * {@inheritdoc} */ - public function __construct(RequestStack $requestStack, string $basePath = '', bool $secure = false) { + public function __construct(protected RequestStack $requestStack, protected string $basePath = '', protected bool $secure = false) { //Call parent constructor parent::__construct($requestStack, $basePath, $secure); - - //Set request stack - $this->requestStack = $requestStack; - - //Set base path - $this->basePath = $basePath; } /**