staabm / phpstan-dba

PHPStan based SQL static analysis and type inference for the database access layer
https://staabm.github.io/archive.html#phpstan-dba
MIT License
262 stars 18 forks source link

Hack new PHPStan 2.x compatible ReflectionCache #716

Closed staabm closed 1 week ago

staabm commented 1 week ago

the cache is not as efficient as it could be.

primary motivation is getting something which is compatible with PHPStan 2.x as our previous implementation relied on Type::__set_state which is no longer availabale in PHPStan 2.x

I am not happy with this solution, but at least it unblocks PHPStan 2.x compat for now. opened https://github.com/staabm/phpstan-dba/issues/718 to rework this again if time allows