From 1f5f399108df676c0f1fc5863fa5dd473a585db7 Mon Sep 17 00:00:00 2001 From: Billy Chubb Date: Mon, 27 Jan 2025 09:54:41 +0000 Subject: [PATCH 1/2] nullable --- src/Debugbar.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Debugbar.php b/src/Debugbar.php index e142032..01728a3 100644 --- a/src/Debugbar.php +++ b/src/Debugbar.php @@ -54,9 +54,9 @@ class Debugbar implements MiddlewareInterface * Set the debug bar. */ public function __construct( - Bar $debugbar = null, - ResponseFactoryInterface $responseFactory = null, - StreamFactoryInterface $streamFactory = null + ?Bar $debugbar = null, + ?ResponseFactoryInterface $responseFactory = null, + ?StreamFactoryInterface $streamFactory = null ) { $this->debugbar = $debugbar ?: new StandardDebugBar(); $this->responseFactory = $responseFactory ?: Factory::getResponseFactory(); @@ -66,7 +66,7 @@ public function __construct( /** * Set the roo path variable */ - public function renderOptions(array $renderOptions = null): self + public function renderOptions(?array $renderOptions = null): self { $this->renderOptions = $renderOptions; From a4548095990dd906d477abbb2d102e9f72c3cadd Mon Sep 17 00:00:00 2001 From: Billy Chubb Date: Wed, 5 Feb 2025 21:07:01 +0000 Subject: [PATCH 2/2] dep --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 08785dd..1b3b686 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "squizlabs/php_codesniffer": "^3.0", "oscarotero/php-cs-fixer-config": "^1.0", "phpstan/phpstan": "^0.12", - "laminas/laminas-diactoros": "^2.3" + "laminas/laminas-diactoros": "^3.5" }, "autoload": { "psr-4": {