8000 minor #27878 improve deprecation messages (xabbuh) · fancyweb/symfony@3f663fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f663fd

Browse files
committed
minor symfony#27878 improve deprecation messages (xabbuh)
This PR was merged into the 4.2-dev branch. Discussion ---------- improve deprecation messages | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 1657b82 improve deprecation messages
2 parents c85134c + 1657b82 commit 3f663fd

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Symfony/Bundle/SecurityBundle/Security/FirewallContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(iterable $listeners, ExceptionListener $exceptionLis
3636
$this->exceptionListener = $exceptionListener;
3737
if ($logoutListener instanceof FirewallConfig) {
3838
$this->config = $logoutListener;
39-
@trigger_error(sprintf('Passing an instance of %s as 3rd argument to %s() is deprecated since Symfony 4.2. Pass a %s instance instead.', FirewallConfig::class, __METHOD__, LogoutListener::class), E_USER_DEPRECATED);
39+
@trigger_error(sprintf('Passing an instance of %s as the 3rd argument to "%s()" is deprecated since Symfony 4.2. Pass a %s instance instead.', FirewallConfig::class, __METHOD__, LogoutListener::class), E_USER_DEPRECATED);
4040
} elseif (null === $logoutListener || $logoutListener instanceof LogoutListener) {
4141
$this->logoutListener = $logoutListener;
4242
$this->config = $config;

src/Symfony/Component/Cache/CacheItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function tag($tags)
162162
*/
163163
public function getPreviousTags()
164164
{
165-
@trigger_error(sprintf('The "%s" method is deprecated since Symfony 4.2, use the "getMetadata()" method instead.', __METHOD__), E_USER_DEPRECATED);
165+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the "getMetadata()" method instead.', __METHOD__), E_USER_DEPRECATED);
166166

167167
return $this->metadata[self::METADATA_TAGS] ?? array();
168168
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(bool $onlyConstructorArguments = false)
5050
*/
5151
public function setRepeatedPass(RepeatedPass $repeatedPass)
5252
{
53-
@trigger_error(sprintf('The "%s" method is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
53+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
5454
}
5555

5656
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(AnalyzeServiceReferencesPass $analyzingPass = null)
4242
*/
4343
public function setRepeatedPass(RepeatedPass $r A977 epeatedPass)
4444
{
45-
@trigger_error(sprintf('The "%s" method is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
45+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
4646
$this->repeatedPass = $repeatedPass;
4747
}
4848

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class RemoveUnusedDefinitionsPass extends AbstractRecursivePass implements Repea
2929
*/
3030
public function setRepeatedPass(RepeatedPass $repeatedPass)
3131
{
32-
@trigger_error(sprintf('The "%s" method is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
32+
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
3333
}
3434

3535
/**

0 commit comments

Comments
 (0)
0