Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c887179

Browse filesBrowse files
committed
[DI] deprecate the strict attribute
1 parent 5a0157f commit c887179
Copy full SHA for c887179

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,10 @@ private function getArgumentsAsPhp(\DOMElement $node, $name, $lowercase = true)
387387
$invalidBehavior = ContainerInterface::NULL_ON_INVALID_REFERENCE;
388388
}
389389

390+
if ($arg->hasAttribute('strict')) {
391+
@trigger_error(sprintf('The "strict" attribute used when referencing the "%s" service is deprecated since version 3.3 and will be removed in 4.0.', $arg->getAttribute('id')), E_USER_DEPRECATED);
392+
}
393+
390394
$arguments[$key] = new Reference($arg->getAttribute('id'), $invalidBehavior);
391395
break;
392396
case 'expression':

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.