We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e811617 commit 07df90bCopy full SHA for 07df90b
tests/ReflectionClosure5Test.php
@@ -3,8 +3,8 @@
3
use Foo\Bar as Baz;
4
use Foo\Baz\Qux;
5
use Foo\Baz\Qux\Forest;
6
-use Laravel\SerializableClosure\Support\ReflectionClosure;
7
use Tests\Fixtures\Model;
+use Laravel\SerializableClosure\Support\ReflectionClosure;
8
9
test('is short closure', function () {
10
$f1 = fn () => 1;
@@ -165,7 +165,7 @@
165
});
166
167
test('from static callable namespaces', function () {
168
- $f = Closure::fromCallable([new Model, 'staticMake']);
+ $f = Closure::fromCallable([Model::class, 'staticMake']);
169
170
$e = 'static function (\Tests\Fixtures\Model $model): \Tests\Fixtures\Model
171
{
0 commit comments