Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.4 compatibility #15

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions src/Debugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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;

Expand Down