minor #33147 [HttpFoundation] Fix deprecation message in ::isMethodSafe() (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
-------

b3928d5ac3 [HttpFoundation] Fix deprecation message in ::isMethodSafe()
This commit is contained in:
Fabien Potencier 2019-08-13 18:37:45 +02:00
commit 588890aea8

View File

@ -1447,7 +1447,7 @@ class Request
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']);