Compare commits

..

2 Commits

Author SHA1 Message Date
a1208b5876 release: v2.8.2 2023-07-01 10:31:00 +01:00
b5f89d1ff8 chore: bumps dependencies 2023-07-01 10:28:15 +01:00
6 changed files with 8 additions and 9 deletions

View File

@ -18,16 +18,16 @@
],
"require": {
"php": "^8.1.0",
"brianium/paratest": "^7.2.0",
"nunomaduro/collision": "^7.6.0",
"brianium/paratest": "^7.2.2",
"nunomaduro/collision": "^7.7.0",
"nunomaduro/termwind": "^1.15.1",
"pestphp/pest-plugin": "^2.0.1",
"pestphp/pest-plugin-arch": "^2.2.1",
"phpunit/phpunit": "^10.2.2"
"phpunit/phpunit": "^10.2.3"
},
"conflict": {
"webmozart/assert": "<1.11.0",
"phpunit/phpunit": ">10.2.2"
"phpunit/phpunit": ">10.2.3"
},
"autoload": {
"psr-4": {

View File

@ -5,7 +5,6 @@ declare(strict_types=1);
namespace Pest\Concerns;
use Closure;
use Pest\Expectation;
/**
* @internal

View File

@ -6,7 +6,7 @@ namespace Pest;
function version(): string
{
return '2.8.1';
return '2.8.2';
}
function testDirectory(string $file = ''): string

View File

@ -32,7 +32,7 @@ final class ExceptionTrace
$message = str_replace(self::UNDEFINED_METHOD, 'Call to undefined method ', $message);
if (class_exists($class) && count(class_parents($class)) > 0 && array_values(class_parents($class))[0] === TestCase::class) {
if (class_exists((string) $class) && (is_countable(class_parents($class)) ? count(class_parents($class)) : 0) > 0 && array_values(class_parents($class))[0] === TestCase::class) { // @phpstan-ignore-line
$message .= '. Did you forget to use the [uses()] function? Read more at: https://pestphp.com/docs/configuring-tests';
}

View File

@ -1,5 +1,5 @@
Pest Testing Framework 2.8.1.
Pest Testing Framework 2.8.2.
USAGE: pest <file> [options]

View File

@ -1,3 +1,3 @@
Pest Testing Framework 2.8.1.
Pest Testing Framework 2.8.2.