Remove Laravel serialisable closure

This commit is contained in:
Peter Fox
2024-03-17 17:23:17 +00:00
parent a4f8ae1a12
commit 0ccbe5c8f0
3 changed files with 1 additions and 4 deletions

View File

@ -19,7 +19,6 @@
"require": { "require": {
"php": "^8.1.0", "php": "^8.1.0",
"brianium/paratest": "^7.3.1", "brianium/paratest": "^7.3.1",
"laravel/serializable-closure": "^1.0",
"nunomaduro/collision": "^7.10.0|^8.1.1", "nunomaduro/collision": "^7.10.0|^8.1.1",
"nunomaduro/termwind": "^1.15.1|^2.0.1", "nunomaduro/termwind": "^1.15.1|^2.0.1",
"pestphp/pest-plugin": "^2.1.1", "pestphp/pest-plugin": "^2.1.1",

View File

@ -4,7 +4,6 @@ declare(strict_types=1);
namespace Pest\Factories; namespace Pest\Factories;
use Laravel\SerializableClosure\Support\ReflectionClosure;
use ParseError; use ParseError;
use Pest\Concerns; use Pest\Concerns;
use Pest\Contracts\AddsAnnotations; use Pest\Contracts\AddsAnnotations;
@ -220,7 +219,7 @@ final class TestCaseFactory
if ( if (
$method->closure instanceof \Closure && $method->closure instanceof \Closure &&
(new ReflectionClosure($method->closure))->isStatic() (new \ReflectionFunction($method->closure))->isStatic()
) { ) {
throw new TestClosureMustNotBeStatic("The test `$method->description` closure must not be static in $method->filename."); throw new TestClosureMustNotBeStatic("The test `$method->description` closure must not be static in $method->filename.");
} }

View File

@ -22,7 +22,6 @@ arch('dependencies')
'Whoops', 'Whoops',
'Symfony\Component\Console', 'Symfony\Component\Console',
'Symfony\Component\Process', 'Symfony\Component\Process',
'Laravel\SerializableClosure\Support\ReflectionClosure',
])->ignoring(['Composer', 'PHPUnit', 'SebastianBergmann']); ])->ignoring(['Composer', 'PHPUnit', 'SebastianBergmann']);
arch('contracts') arch('contracts')