Skip to content

Commit e3ebabc

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: fix expected autowiring exception message Avoid calling AbstractPlatform::hasNativeGuidType()
2 parents a748096 + 9354ef2 commit e3ebabc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Compiler/AutowirePassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public function testTypeNotGuessableIntersectionType()
288288
$pass = new AutowirePass();
289289

290290
$this->expectException(AutowiringFailedException::class);
291-
$this->expectExceptionMessage('Cannot autowire service "a": argument "$collision" of method "Symfony\Component\DependencyInjection\Tests\Compiler\IntersectionClasses::__construct()" has type "Symfony\Component\DependencyInjection\Tests\Compiler\CollisionInterface&Symfony\Component\DependencyInjection\Tests\Compiler\AnotherInterface" but this class was not found.');
291+
$this->expectExceptionMessage('Cannot autowire service "a": argument "$collision" of method "Symfony\Component\DependencyInjection\Tests\Compiler\IntersectionClasses::__construct()" has type "Symfony\Component\DependencyInjection\Tests\Compiler\AnotherInterface&Symfony\Component\DependencyInjection\Tests\Compiler\CollisionInterface" but this class was not found.');
292292
$pass->process($container);
293293
}
294294

@@ -308,7 +308,7 @@ public function testTypeNotGuessableCompositeType()
308308
$pass = new AutowirePass();
309309

310310
$this->expectException(AutowiringFailedException::class);
311-
$this->expectExceptionMessage('Cannot autowire service "a": argument "$collision" of method "Symfony\Component\DependencyInjection\Tests\Compiler\CompositeTypeClasses::__construct()" has type "(Symfony\Component\DependencyInjection\Tests\Compiler\CollisionInterface&Symfony\Component\DependencyInjection\Tests\Compiler\AnotherInterface)|Symfony\Component\DependencyInjection\Tests\Compiler\YetAnotherInterface" but this class was not found.');
311+
$this->expectExceptionMessage('Cannot autowire service "a": argument "$collision" of method "Symfony\Component\DependencyInjection\Tests\Compiler\CompositeTypeClasses::__construct()" has type "(Symfony\Component\DependencyInjection\Tests\Compiler\AnotherInterface&Symfony\Component\DependencyInjection\Tests\Compiler\CollisionInterface)|Symfony\Component\DependencyInjection\Tests\Compiler\YetAnotherInterface" but this class was not found.');
312312
$pass->process($container);
313313
}
314314

0 commit comments

Comments
 (0)