From 6079c521e0ff6397c2ed8096f9b79e78b839900a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 21 Mar 2021 23:29:14 -0600 Subject: [PATCH] Update phpstan/phpstan requirement from 0.12.48 to 0.12.81 (#71) * Update phpstan/phpstan requirement from 0.12.48 to 0.12.81 Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version. - [Release notes](https://github.com/phpstan/phpstan/releases) - [Commits](https://github.com/phpstan/phpstan/compare/0.12.48...0.12.81) Signed-off-by: dependabot[bot] * fixing phpstan ignores for new version Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jay Klehr --- composer.json | 2 +- phpstan.neon | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 7db742f..5156a7f 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ }, "require-dev": { "phpunit/phpunit": "^8.0", - "phpstan/phpstan": "0.12.48", + "phpstan/phpstan": "0.12.81", "friendsofphp/php-cs-fixer": "2.18.3", "maglnet/composer-require-checker": "^1.1.0 || ^2.0.0", "phpro/grumphp-shim": "^0.22.0 || ^1.1" diff --git a/phpstan.neon b/phpstan.neon index 8e73fc4..d4105d9 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -12,7 +12,7 @@ parameters: # Zend_Config has an __isset overload defined so that these array-like calls will work - '#Cannot access offset .+ on array\|Zend_Config\.#' # call_user_func does accept an array as the callable - - '#Parameter \#1 \$function of function call_user_func expects callable\(\): mixed, array\(class-string, .factory.\) given\.#' + - '#Parameter \#1 \$(function|callback) of function call_user_func expects callable\(\): mixed, array\(string, .factory.\) given\.#' - message: '#Parameter \#2 \$priority of method Zend_Log::log\(\) expects int, int\|string given\.#' path: %currentWorkingDirectory%/src/Zend/Log.php @@ -23,10 +23,13 @@ parameters: message: '#Property Zend_Log_Writer_Stream::\$_stream \(resource\|null\) does not accept resource\|false\.#' path: %currentWorkingDirectory%/src/Zend/Log/Writer/Stream.php - - message: '#Parameter \#1 \$fp of function fwrite expects resource, resource\|null given\.#' + message: '#Parameter \#1 \$(fp|stream) of function fwrite expects resource, resource\|null given\.#' path: %currentWorkingDirectory%/src/Zend/Log/Writer/Stream.php # All of these are defensive coding in case an object isn't returned from _constructFromConfig (which is # possible, since it's a call_user_func return) - message: '#Else branch is unreachable because ternary operator condition is always true.#' path: %currentWorkingDirectory%/src/Zend/Log.php + - + message: '#Parameter \#1 \$(argument|objectOrClass) of class ReflectionClass constructor expects class-string\|T of object, string given\.#' + path: ./src/Zend/Log.php