diff --git a/composer.json b/composer.json index 1fde0ac..d9351d2 100644 --- a/composer.json +++ b/composer.json @@ -20,9 +20,9 @@ }, "require": { "php": ">=7.2.5", - "illuminate/console": "5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", - "illuminate/http": "5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", - "illuminate/support": "5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/console": "5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/http": "5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", "symfony/var-dumper": "^5.0|^6.0|^7.0" }, "require-dev": { diff --git a/src/Dumper.php b/src/Dumper.php index 4e6ab7b..5e6dfeb 100755 --- a/src/Dumper.php +++ b/src/Dumper.php @@ -22,7 +22,7 @@ class Dumper * @param \Symfony\Component\VarDumper\Server\Connection|null $connection * @return void */ - public function __construct(Connection $connection = null) + public function __construct(?Connection $connection = null) { $this->connection = $connection; } diff --git a/src/RequestContextProvider.php b/src/RequestContextProvider.php index 115a72a..dc165f8 100644 --- a/src/RequestContextProvider.php +++ b/src/RequestContextProvider.php @@ -28,7 +28,7 @@ class RequestContextProvider implements ContextProviderInterface * @param \Illuminate\Http\Request|null $currentRequest * @return void */ - public function __construct(Request $currentRequest = null) + public function __construct(?Request $currentRequest = null) { $this->currentRequest = $currentRequest; $this->cloner = new VarCloner;