File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Symfony/Component/DependencyInjection/Dumper Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1331,9 +1331,12 @@ private function dumpValue($value, $interpolate = true)
1331
1331
if (null !== $ this ->definitionVariables && $ this ->definitionVariables ->contains ($ value )) {
1332
1332
return $ this ->dumpValue ($ this ->definitionVariables ->offsetGet ($ value ), $ interpolate );
1333
1333
}
1334
- if (count ( $ value ->getMethodCalls ()) > 0 ) {
1334
+ if ($ value ->getMethodCalls ()) {
1335
1335
throw new RuntimeException ('Cannot dump definitions which have method calls. ' );
1336
1336
}
1337
+ if ($ value ->getProperties ()) {
1338
+ throw new RuntimeException ('Cannot dump definitions which have properties. ' );
1339
+ }
1337
1340
if (null !== $ value ->getConfigurator ()) {
1338
1341
throw new RuntimeException ('Cannot dump definitions which have a configurator. ' );
1339
1342
}
You can’t perform that action at this time.
0 commit comments