Skip to content

Update phpstan/phpstan to 1.12.34 so composer phpstan runs on PHP 8.4 - #14

Merged
DarkGL merged 1 commit into
mainfrom
fix/phpstan-php84
Nov 22, 2026
Merged

DarkGL merged 1 commit into
mainfrom
fix/phpstan-php84

Conversation

@DarkGL

@DarkGL DarkGL commented Nov 22, 2026

Copy link
Copy Markdown
Member

composer phpstan kończył się na PHP 8.4 fatal errorem w BetterReflection, który siedzi w pharze PHPStana 1.10.55:

Type of PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass::IS_READONLY must be compatible with ReflectionClass::IS_READONLY of type int

CI uruchamia tylko composer test, więc nikt tego nie zauważył.

Aktualizuję PHPStana do 1.12.34. Mieści się w obecnym ^1.10 i nadal działa na PHP 7.4, więc zmienia się tylko composer.lock. Na 2.x nie przechodzę, bo rector/rector 0.19 wymaga PHPStana 1.x.

Na PHP 8.4.28 composer phpstan daje [OK] No errors, a composer test 24 testy, 266 asercji. Na PHP 7.4 tego nie sprawdzałem, nie mam go lokalnie.

PHPStan 1.10.55 dies on PHP 8.4 with a fatal error in its bundled
BetterReflection (ReflectionClass::IS_READONLY type mismatch). 1.12.34 fits
the existing ^1.10 constraint and still supports PHP 7.4. Only the lock file
changes; the analysis reports no errors.
@DarkGL
DarkGL merged commit 8793916 into main Nov 22, 2026
7 checks passed
@DarkGL
DarkGL deleted the fix/phpstan-php84 branch November 22, 2026 14:19
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