Skip to content

Commit 10bcff3

Browse files
committed
Use ::class keyword when possible
1 parent c482090 commit 10bcff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Exception/FlattenExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function () {},
304304

305305
$args = $array[$i++];
306306
$this->assertSame('object', $args[0]);
307-
$this->assertTrue('Closure' === $args[1] || is_subclass_of($args[1], '\Closure'), 'Expect object class name to be Closure or a subclass of Closure.');
307+
$this->assertTrue('Closure' === $args[1] || is_subclass_of($args[1], \Closure::class), 'Expect object class name to be Closure or a subclass of Closure.');
308308

309309
$this->assertSame(['array', [['integer', 1], ['integer', 2]]], $array[$i++]);
310310
$this->assertSame(['array', ['foo' => ['integer', 123]]], $array[$i++]);

0 commit comments

Comments
 (0)