From defb793b0bd5d1055cc4bfa29baf3d7d971f76a9 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 26 Apr 2021 10:54:39 +0300 Subject: [PATCH] Hide phpstan deprecation errors on Doctrine Cache --- tests/phpstan/phpstan.neon | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/phpstan/phpstan.neon b/tests/phpstan/phpstan.neon index ff372d778..9125630cc 100644 --- a/tests/phpstan/phpstan.neon +++ b/tests/phpstan/phpstan.neon @@ -124,8 +124,11 @@ parameters: # Support for deprecated features - - message: '#Instantiation of deprecated class Doctrine\\Common\\Cache\\MemcacheCache#' + message: '#Instantiation of deprecated class Doctrine\\Common\\Cache\\(\w+)Cache#' path: '*/system/src/Grav/Common/Cache.php' + - + message: '#Instantiation of deprecated class Doctrine\\Common\\Cache\\(\w+)Cache#' + path: '*/system/src/Grav/Common/GPM/Remote/*.php' - message: '#Call to deprecated method order#' path: '*/system/src/Grav/Common/Page/Pages.php'