Skip to content
Permalink
Browse files

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

  • Loading branch information...
mdlutz24 committed Aug 13, 2019
1 parent 50c5911 commit b3928d5ac33d7b56e0b726eddf7a5c76b1bd32eb
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 b3928d5

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