Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68eda49

Browse files
[DI] Fix hidding service in autowiring errors
1 parent 87a29f7 commit 68eda49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ private function populateAvailableType(string $id, Definition $definition)
308308
return;
309309
}
310310

311-
if (preg_match('/^\d+_[^~]++~[._a-zA-Z\d]{7}$/', $id) || $definition->isDeprecated() || !$reflectionClass = $this->container->getReflectionClass($definition->getClass(), false)) {
311+
if ('' === $id || '.' === $id[0] || $definition->isDeprecated() || !$reflectionClass = $this->container->getReflectionClass($definition->getClass(), false)) {
312312
return;
313313
}
314314

0 commit comments

Comments
 (0)