Skip to content

Commit a771502

Browse files
Merge branch '4.3' into 4.4
* 4.3: [DI] Dont cache classes with missing parents [HttpClient] Fix a crash when calling CurlHttpClient::__destruct() [Validator] Add the missing translations for the Hebrew (\"he\") locale and fix 2 typos [FrameworkBundle][Translation] Invalidate cached catalogues when the scanned directories change
2 parents 12868f5 + 8267214 commit a771502

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Resource/ClassExistenceResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public static function throwOnRequiredClass($class, \Exception $previous = null)
147147
throw $previous;
148148
}
149149

150-
$e = new \ReflectionException("Class $class not found", 0, $previous);
150+
$e = new \ReflectionException(sprintf('Class "%s" not found while loading "%s".', $class, self::$autoloadedClass), 0, $previous);
151151

152152
if (null !== $previous) {
153153
throw $e;

Tests/Resource/ClassExistenceResourceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function testBadParentWithTimestamp()
8484
public function testBadParentWithNoTimestamp()
8585
{
8686
$this->expectException('ReflectionException');
87-
$this->expectExceptionMessage('Class Symfony\Component\Config\Tests\Fixtures\MissingParent not found');
87+
$this->expectExceptionMessage('Class "Symfony\Component\Config\Tests\Fixtures\MissingParent" not found while loading "Symfony\Component\Config\Tests\Fixtures\BadParent".');
8888

8989
$res = new ClassExistenceResource(BadParent::class, false);
9090
$res->isFresh(0);

0 commit comments

Comments
 (0)