Commit f08be334 authored by catch's avatar catch
Browse files

Issue #3117869 by longwave: [Symfony 5] Passing arguments to...

Issue #3117869 by longwave: [Symfony 5] Passing arguments to "Symfony\Component\HttpFoundation\Request::isMethodSafe()" has been deprecated since Symfony 4.4
parent 3cfe353e
......@@ -18,7 +18,7 @@ public function filter(RouteCollection $collection, Request $request) {
// The Content-type header does not make sense on GET or DELETE requests,
// because they do not carry any content. Nothing to filter in this case.
// Same for all other safe methods.
if ($request->isMethodSafe(FALSE) || $request->isMethod('DELETE')) {
if ($request->isMethodSafe() || $request->isMethod('DELETE')) {
return $collection;
}
......
......@@ -159,7 +159,6 @@ public static function getSkippedDeprecations() {
'The "Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch()" method will require a new "string|null $eventName" argument in the next major version of its interface "Symfony\Contracts\EventDispatcher\EventDispatcherInterface", not defining it is deprecated.',
'The "Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch()" method will require a new "string|null $eventName" argument in the next major version of its parent class "Symfony\Contracts\EventDispatcher\EventDispatcherInterface", not defining it is deprecated.',
'Passing a command as string when creating a "Symfony\Component\Process\Process" instance is deprecated since Symfony 4.2, pass it as an array of its arguments instead, or use the "Process::fromShellCommandline()" constructor if you need features provided by the shell.',
'Passing arguments to "Symfony\Component\HttpFoundation\Request::isMethodSafe()" has been deprecated since Symfony 4.4; use "Symfony\Component\HttpFoundation\Request::isMethodCacheable()" to check if the method is cacheable instead.',
'The "Symfony\Component\Debug\BufferingLogger" class is deprecated since Symfony 4.4, use "Symfony\Component\ErrorHandler\BufferingLogger" instead.',
// The following deprecation is listed for Twig 2 compatibility when unit
// testing using \Symfony\Component\ErrorHandler\DebugClassLoader.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment