Skip to content

Commit

Permalink
Fix PHP 8.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 6, 2024
1 parent c270e69 commit 570d7a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:

- name: Run PHP CS Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --config=.php_cs.dist.php --allow-risky=yes

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.3, 8.2, 8.1, 8.0, 7.4]
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
stability: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
Expand Down
2 changes: 2 additions & 0 deletions .php_cs.dist.php → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
])
->name('*.php')
->notName('*.blade.php')
->notName('ClassWithSyntaxError.php')
->ignoreDotFiles(true)
->ignoreVCS(true);

return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
Expand Down
2 changes: 1 addition & 1 deletion src/Runtime/ParentRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ParentRuntime

protected static $myPid = null;

public static function init(string $autoloader = null)
public static function init(?string $autoloader = null)
{
if (! $autoloader) {
$existingAutoloaderFiles = array_filter([
Expand Down

0 comments on commit 570d7a7

Please sign in to comment.