Skip to content
Permalink
Browse files

minor #33147 [HttpFoundation] Fix deprecation message in ::isMethodSa…

…fe() (mdlutz24)

This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] Fix deprecation message in ::isMethodSafe()

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Very minor fix to the format of the deprecation message in Request::isMethodSafe()

Commits
-------

b3928d5 [HttpFoundation] Fix deprecation message in ::isMethodSafe()
  • Loading branch information...
fabpot committed Aug 13, 2019
2 parents 50c5911 + b3928d5 commit 588890aea8517a1e123f6062e8d0cd5384798742
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Component/HttpFoundation/Request.php
@@ -1447,7 +1447,7 @@ public function isMethod($method)
public function isMethodSafe()
{
if (\func_num_args() > 0) {
@trigger_error(sprintf('Passing arguments to "%s()" has been deprecated since Symfony 4.4; use "%s::isMethodCacheable() to check if the method is cacheable instead."', __METHOD__, __CLASS__), E_USER_DEPRECATED);
@trigger_error(sprintf('Passing arguments to "%s()" has been deprecated since Symfony 4.4; use "%s::isMethodCacheable()" to check if the method is cacheable instead.', __METHOD__, __CLASS__), E_USER_DEPRECATED);
}
return \in_array($this->getMethod(), ['GET', 'HEAD', 'OPTIONS', 'TRACE']);

0 comments on commit 588890a

Please sign in to comment.
You can’t perform that action at this time.