diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index 18679da..7a49c2c 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -17,6 +17,7 @@ jobs: php-version: - "7.4" - "8.3" + - "8.6" steps: - name: Checkout code diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2fc0a8b..74a5165 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,6 +22,7 @@ jobs: - "8.3" - "8.4" - "8.5" + - "8.6" steps: - name: Checkout code diff --git a/.github/workflows/cs.yaml b/.github/workflows/cs.yaml index b06399c..52b4e33 100644 --- a/.github/workflows/cs.yaml +++ b/.github/workflows/cs.yaml @@ -27,6 +27,8 @@ jobs: php-version: ${{ matrix.php-version }} - name: cs fix + env: + PHP_CS_FIXER_IGNORE_ENV: "1" run: | wget -q https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.19.3/php-cs-fixer.phar php php-cs-fixer.phar fix --dry-run --diff diff --git a/test/HTML5/Serializer/OutputRulesTest.php b/test/HTML5/Serializer/OutputRulesTest.php index bee5978..a410894 100644 --- a/test/HTML5/Serializer/OutputRulesTest.php +++ b/test/HTML5/Serializer/OutputRulesTest.php @@ -44,7 +44,9 @@ public function getProtectedMethod($name) { $class = new \ReflectionClass('\Masterminds\HTML5\Serializer\OutputRules'); $method = $class->getMethod($name); - $method->setAccessible(true); + if (\PHP_VERSION_ID < 80500) { + $method->setAccessible(true); + } return $method; } diff --git a/test/HTML5/Serializer/TraverserTest.php b/test/HTML5/Serializer/TraverserTest.php index 09d7142..dd90d17 100644 --- a/test/HTML5/Serializer/TraverserTest.php +++ b/test/HTML5/Serializer/TraverserTest.php @@ -43,7 +43,9 @@ public function getProtectedMethod($name) { $class = new \ReflectionClass('\Masterminds\HTML5\Serializer\Traverser'); $method = $class->getMethod($name); - $method->setAccessible(true); + if (\PHP_VERSION_ID < 80500) { + $method->setAccessible(true); + } return $method; }