You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 5.4:
[GHA] fix running "Patch return types" step
[Serializer] Don't pass null to preg_match()
[String] Update wcswidth data with Unicode 14
[Mailer][Sendgrid] Fix test
Use identity operator to prevent type juggling
[Form] Don't trim unassigned unicode characters anymore
Allow injecting tagged iterator as service locator arguments
[FrameworkBundle] Add configureContainer(), configureRoutes() and getConfigDir() to MicroKernelTrait
* Gets the path to the bundles configuration file.
97
+
*/
98
+
privatefunctiongetBundlesPath(): string
99
+
{
100
+
return$this->getConfigDir().'/bundles.php';
101
+
}
63
102
64
103
/**
65
104
* {@inheritdoc}
@@ -124,23 +163,18 @@ public function registerContainerConfiguration(LoaderInterface $loader)
124
163
$container->addObjectResource($this);
125
164
$container->fileExists($this->getBundlesPath());
126
165
127
-
try {
128
-
$configureContainer = new \ReflectionMethod($this, 'configureContainer');
129
-
} catch (\ReflectionException$e) {
130
-
thrownew \LogicException(sprintf('"%s" uses "%s", but does not implement the required method "protected function configureContainer(ContainerConfigurator $container): void".', get_debug_type($this), MicroKernelTrait::class), 0, $e);
131
-
}
132
-
166
+
$configureContainer = new \ReflectionMethod($this, 'configureContainer');
$this->expectExceptionMessage('"Symfony\Bundle\FrameworkBundle\Tests\Kernel\MinimalKernel@anonymous" uses "Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait", but does not implement the required method "protected function configureContainer(ContainerConfigurator $container): void".');
0 commit comments