diff --git a/composer.json b/composer.json index a585c9d..9ba7fd0 100644 --- a/composer.json +++ b/composer.json @@ -15,9 +15,9 @@ "license": "MIT", "require": { "php": "^8.1", - "nunomaduro/collision": "^7.10.0|^8.0.0", + "nunomaduro/collision": "^7.10.0|^8.0.1", "pestphp/pest-plugin": "^2.1.1", - "ta-tikoma/phpunit-architecture-test": "^0.7.5" + "ta-tikoma/phpunit-architecture-test": "^0.8.0" }, "autoload": { "psr-4": { @@ -37,7 +37,7 @@ ] }, "require-dev": { - "pestphp/pest": "^2.27.0", + "pestphp/pest": "^2.30.0", "pestphp/pest-dev-tools": "^2.16.0" }, "minimum-stability": "dev", diff --git a/src/Autoload.php b/src/Autoload.php index ad99ee3..5be50e3 100644 --- a/src/Autoload.php +++ b/src/Autoload.php @@ -15,7 +15,7 @@ * argument is the test description; the second argument * is a closure that contains the test expectations. */ - function arch(string $description, Closure $closure = null): TestCall + function arch(string $description, ?Closure $closure = null): TestCall { $test = test($description, $closure);