Skip to content

Commit

Permalink
Update phpstan/phpstan requirement from 0.12.48 to 0.12.81 (#71)
Browse files Browse the repository at this point in the history
* 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](phpstan/phpstan@0.12.48...0.12.81)

Signed-off-by: dependabot[bot] <[email protected]>

* fixing phpstan ignores for new version

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jay Klehr <[email protected]>
  • Loading branch information
dependabot[bot] and jaydiablo authored Mar 22, 2021
1 parent b49dcec commit 6079c52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 5 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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>\|T of object, string given\.#'
path: ./src/Zend/Log.php

0 comments on commit 6079c52

Please sign in to comment.