File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
DependencyInjection/Compiler Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function process(ContainerBuilder $container)
3131 $ definitions = $ container ->getDefinitions ();
3232
3333 foreach ($ definitions as $ id => $ definition ) {
34- if ($ id && '. ' !== $ id [0 ] && (!$ definition ->isPublic () || $ definition ->isPrivate ()) && !$ definition ->getErrors () && !$ definition ->isAbstract ()) {
34+ if ($ id && '. ' !== $ id [0 ] && (!$ definition ->isPublic () || $ definition ->isPrivate ()) && !$ definition ->hasErrors () && !$ definition ->isAbstract ()) {
3535 $ privateServices [$ id ] = new Reference ($ id , ContainerBuilder::IGNORE_ON_UNINITIALIZED_REFERENCE );
3636 }
3737 }
@@ -43,7 +43,7 @@ public function process(ContainerBuilder $container)
4343 while (isset ($ aliases [$ target = (string ) $ alias ])) {
4444 $ alias = $ aliases [$ target ];
4545 }
46- if (isset ($ definitions [$ target ]) && !$ definitions [$ target ]->getErrors () && !$ definitions [$ target ]->isAbstract ()) {
46+ if (isset ($ definitions [$ target ]) && !$ definitions [$ target ]->hasErrors () && !$ definitions [$ target ]->isAbstract ()) {
4747 $ privateServices [$ id ] = new Reference ($ target , ContainerBuilder::IGNORE_ON_UNINITIALIZED_REFERENCE );
4848 }
4949 }
You can’t perform that action at this time.
0 commit comments