The extension is now maintained by Mage-OS.
Added
- #359 Lint
src/on the lowest supported PHP version in CI and analyse thesrc/Magentostubs against the PHP version range declared in composer.json. - #357 A CI smoke test (
composer smoke-test) that runs a real analysis over a generated fixture project and fails when the generated-class autoloaders report an internal error.
Deprecated
- Nothing.
Removed
- #359 Drop PHP 7.2 and 7.3 from the composer.json constraint. They could not install the package anyway since 0.43.0 requires phpstan/phpstan ^2.0, which needs PHP 7.4.
- #357
bitExpert\PHPStan\Magento\Autoload\Cache\FileCacheStorage, replaced bybitExpert\PHPStan\Magento\Autoload\Cache\GeneratedFileCache. The autoloaders now take that class in place ofPHPStan\Cache\Cache, and the generated classes move from%tmpDir%/cache/PHPStanto%tmpDir%/cache/bitExpert/PHPStanMagentoso that they no longer share a directory with PHPStan's own cache.
Fixed
- #359 Drop the PHP 8 union type from the
Escaperstub. It isrequire()d by the MockAutoloader, so it made every analysis run on PHP 7 fail with an internal error. - #357 Fix "Internal error: Failed opening required '<?php ...'" for every generated Factory, Proxy, Extension and ExtensionInterface class on PHPStan 2.2.10 and PHP 8.3 or later.
FileCacheStoragestored the generated source but returned a file path fromload(), which aPHPStan\Cache\CacheStoragemust not do. Once PHPStan served cache entries from its shared memory arena,Cache::load()returned the source code and the autoloaders required that in place of the file. - #355 Prevent parallel workers from loading an empty or half-written generated class file. The cache now writes to a temporary file and renames it into place, and treats an empty cache file as a cache miss.
New Contributors
- @pmzandbergen made their first contribution in #355
- @michielgerritsen made their first contribution in #357
Full Changelog: v0.43.0...0.44.0