Skip to content

Commit 890e05a

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: Use ::class keyword when possible
2 parents 8699bd5 + f110812 commit 890e05a

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
@@ -290,7 +290,7 @@ function () {},
290290

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

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

0 commit comments

Comments
 (0)