Skip to content

Commit 5413a7f

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: [Bridge] Corrects bug in test listener trait fix expected autowiring exception message Avoid calling AbstractPlatform::hasNativeGuidType()
2 parents 05c1149 + db7987f commit 5413a7f

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
@@ -285,7 +285,7 @@ public function testTypeNotGuessableIntersectionType()
285285
$pass = new AutowirePass();
286286

287287
$this->expectException(AutowiringFailedException::class);
288-
$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.');
288+
$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.');
289289
$pass->process($container);
290290
}
291291

@@ -305,7 +305,7 @@ public function testTypeNotGuessableCompositeType()
305305
$pass = new AutowirePass();
306306

307307
$this->expectException(AutowiringFailedException::class);
308-
$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.');
308+
$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.');
309309
$pass->process($container);
310310
}
311311

0 commit comments

Comments
 (0)