Skip to content

Commit 43cdfac

Browse files
Merge branch '5.0' into 5.1
* 5.0: Parse and render anonymous classes correctly on php 8 Enable APCu for the php 8 build. [Process] Fix failing test on php 8. [HttpKernel] fix test Make PHP 8 green on Travis Revert "[Cache] allow DBAL v3" [PropertyAccessor] Added missing property path on php 8. Don't execute tests with DBAL 2.x on php 8.
2 parents 379432d + a1b507f commit 43cdfac

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Tests/ApplicationTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,8 @@ public function testRenderAnonymousException()
883883
$application = new Application();
884884
$application->setAutoExit(false);
885885
$application->register('foo')->setCode(function () {
886-
throw new class('') extends \InvalidArgumentException { };
886+
throw new class('') extends \InvalidArgumentException {
887+
};
887888
});
888889
$tester = new ApplicationTester($application);
889890

@@ -893,7 +894,8 @@ public function testRenderAnonymousException()
893894
$application = new Application();
894895
$application->setAutoExit(false);
895896
$application->register('foo')->setCode(function () {
896-
throw new \InvalidArgumentException(sprintf('Dummy type "%s" is invalid.', get_debug_type(new class() { })));
897+
throw new \InvalidArgumentException(sprintf('Dummy type "%s" is invalid.', \get_class(new class() {
898+
})));
897899
});
898900
$tester = new ApplicationTester($application);
899901

@@ -906,7 +908,8 @@ public function testRenderExceptionStackTraceContainsRootException()
906908
$application = new Application();
907909
$application->setAutoExit(false);
908910
$application->register('foo')->setCode(function () {
909-
throw new class('') extends \InvalidArgumentException { };
911+
throw new class('') extends \InvalidArgumentException {
912+
};
910913
});
911914
$tester = new ApplicationTester($application);
912915

@@ -916,7 +919,8 @@ public function testRenderExceptionStackTraceContainsRootException()
916919
$application = new Application();
917920
$application->setAutoExit(false);
918921
$application->register('foo')->setCode(function () {
919-
throw new \InvalidArgumentException(sprintf('Dummy type "%s" is invalid.', get_debug_type(new class() { })));
922+
throw new \InvalidArgumentException(sprintf('Dummy type "%s" is invalid.', \get_class(new class() {
923+
})));
920924
});
921925
$tester = new ApplicationTester($application);
922926

0 commit comments

Comments
 (0)