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
minor #41928 [DependencyInjection] Add types to private properties (derrabus)
This PR was merged into the 6.0 branch.
Discussion
----------
[DependencyInjection] Add types to private properties
| Q | A
| ------------- | ---
| Branch? | 6.0
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | N/A
| License | MIT
| Doc PR | N/A
Same procedure as #41924, but on a more complex component.
Commits
-------
069da20 [DependencyInjection] Add types to private properties
Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Alias.php
+3-3
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ class Alias
17
17
{
18
18
privateconstDEFAULT_DEPRECATION_TEMPLATE = 'The "%alias_id%" service alias is deprecated. You should stop using it, as it will be removed in the future.';
thrownewLogicException('Unable to use expressions as the Symfony ExpressionLanguage component is not installed. Try running "composer require symfony/expression-language".');
->setDeprecated($package, $version, 'Accessing the "%alias_id%" service directly from the container is deprecated, use dependency injection instead.');
0 commit comments