Skip to content

Add a PHPStan check for PHP 8.4 and 8.5 - #490

Merged
csev merged 1 commit into
masterfrom
phpstan-php-8.4-8.5
Oct 23, 2026
Merged

csev merged 1 commit into
masterfrom
phpstan-php-8.4-8.5

Conversation

@csev

@csev csev commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add the same static PHPStan job as pg4e: level 3, PHP 8.4 through 8.5, with Tsugi scanned for symbols only.
  • Fix the PHP 8 issues that run found, including trailing whitespace after a closing ?>, string-to-number arithmetic, a float used as an array index, and an array compared with >=. The result is clean, so there is no baseline.
  • The workflow checks out Tsugi and copies config-dist.php to config.php inside the job. It does not start a web server or change the local Tsugi install.

Test plan

  • composer phpstan locally against the existing tsugi/ checkout reports no errors
  • GitHub Actions PHPStan check passes on this pull request

Made with Cursor

Fix the PHP 8 issues the check found so new problems fail without a baseline.

Co-authored-by: Cursor <cursoragent@cursor.com>
@csev
csev merged commit 465c808 into master Oct 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant