Skip to content

Commit

Permalink
PHP 8.4 (#293)
Browse files Browse the repository at this point in the history
* PHP 8.4

* removing dev-master
  • Loading branch information
jaydiablo authored Jan 10, 2025
1 parent aa82021 commit 3fd7e52
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ["8.0", "8.1", "8.2", "8.3"]
php-versions: ["8.0", "8.1", "8.2", "8.3", "8.4"]
composer-args: ["", "--prefer-lowest"]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@2.30.2
uses: shivammathur/setup-php@2.32.0
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Test
run: composer test-with-coverage
- name: Upload Coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
files: ./clover.xml
verbose: true
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"license": "BSD-3-Clause",
"prefer-stable": true,
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"diablomedia/zendframework1-exception": "^1.1.1"
},
"autoload": {
Expand All @@ -25,8 +25,8 @@
},
"require-dev": {
"phpunit/phpunit": "^9.6.19 || ^10.5.18",
"phpstan/phpstan": "1.10.67",
"friendsofphp/php-cs-fixer": "3.54.0",
"phpstan/phpstan": "2.1.1",
"friendsofphp/php-cs-fixer": "3.67.0",
"maglnet/composer-require-checker": "^3.0.0",
"phpro/grumphp-shim": "^2.0.0"
},
Expand Down
3 changes: 3 additions & 0 deletions grumphp.yml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# grumphp.yml
grumphp:
environment:
variables:
PHP_CS_FIXER_IGNORE_ENV: "true"
tasks:
composer:
strict: true
Expand Down
12 changes: 6 additions & 6 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ includes:
parameters:
level: 8
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
treatPhpDocTypesAsCertain: false
paths:
- ./
excludePaths:
- %rootDir%/../../../tests/*
- %rootDir%/../../../vendor/*
ignoreErrors:
# ZF seems to believe that the getName method on ReflectionFunction may return "null", doesn't seem to unless given parameters
- '#Strict comparison using === between null and string will always evaluate to false\.#'
-
identifier: missingType.iterableValue
-
identifier: missingType.generics
# This might be a bug, I didn't look at all of the code above it, but $_reflection could be ReflectionFunction or ReflectionMethod
# only ReflectionMethod has this method on it
- '#Call to an undefined method ReflectionFunction\|ReflectionMethod::getDeclaringClass\(\)\.#'
Expand All @@ -29,8 +30,7 @@ parameters:
message: '#Parameter \#1 \$(function|callback) of function call_user_func_array expects callable\(\): .+ given\.#'
path: %currentWorkingDirectory%/src/Zend/Server/Reflection/Parameter.php
# Defensive coding, can't be enforced by PHP typehints
- '#Result of && is always false\.#'
- '#Strict comparison using !== between null and null will always evaluate to false\.#'
- '#Strict comparison using !== between null and mixed will always evaluate to true\.#'
- '#Parameter \#1 \$(argument|objectOrClass) of class ReflectionClass constructor expects class-string<T of object>\|T of object, .+ given\.#'
-
message: '#Parameter \#3 \$argv of class Zend_Server_Reflection_Function constructor expects array, array\|false\|null given\.#'
Expand Down
4 changes: 2 additions & 2 deletions src/Zend/Server/Reflection/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ class Zend_Server_Reflection_Node
* Constructor
*
* @param mixed $value
* @param Zend_Server_Reflection_Node $parent Optional
* @param Zend_Server_Reflection_Node|null $parent Optional
* @return void
*/
public function __construct($value, Zend_Server_Reflection_Node $parent = null)
public function __construct($value, Zend_Server_Reflection_Node|null $parent = null)
{
$this->_value = $value;
if (null !== $parent) {
Expand Down

0 comments on commit 3fd7e52

Please sign in to comment.