barryvdh / laravel-httpcache

Laravel HTTP Cache
484 stars 41 forks source link

Error HttpFoundation\Request::isMethodSafe() is deprecated #48

Closed boonstoppel closed 6 years ago

boonstoppel commented 6 years ago

Symfony\Component\HttpFoundation\Request::isMethodSafe() is deprecated since version 3.2 and will throw an exception in 4.0.

Disable checking only for cacheable methods by calling the method with false as first argument or use the Request::isMethodCacheable() instead.

boonstoppel commented 6 years ago

any updates on this? I submitted a pull request to fix this issue.

boonstoppel commented 6 years ago

Created a new pull request that is backward compatible: https://github.com/barryvdh/laravel-httpcache/pull/51

barryvdh commented 6 years ago

Fixed with https://github.com/barryvdh/laravel-httpcache/commit/ff09bf7405371941acec2ffaab852353b7fb315b

barryvdh commented 6 years ago

Can you try with 0.3@dev?

boonstoppel commented 6 years ago

works like a charm