PHP
最先端の機能 InvalidPhpDocTagValueRule: エラーメッセージにPHPDocの行番号を含む このファイルを含めると、後方互換性の保証はありません。このファイルを含めると、挙動や報告されるエラーがマイナーバージョンで変更される可能性があります。 改善点 …
github.com Bleeding edge filter_inputのタイプパラメータチェック (#2271)、@herndlm に感謝 プロジェクトのphpstan.neonに以下の設定を追加して、最先端の機能を試すことができる ``` includes: vendor/phpstan/phpstan/conf/bleedingEdge.neon ``` ただ…
修正: 内部エラー FilterVarArrayDynamicReturnTypeExtension mixed 入力 #2338 #9178 github.com
改善点 JsonErrorFormatter - 識別子を含める (phpstan/phpstan-src@6910be2) AccessPropertiesRule - 記事リンク付きのヒント (phpstan/phpstan-src@e6e2d1a) Xdebugが有効時の--xdebugに関する注意事項 (phpstan/phpstan-src@1d4ede1) バグ修正 IssetChe…
PHPUnit 10 dataProvidersに関連する静的メソッドの改善 StrictComparisonOfDifferentTypesRuleとConstantLooseComparisonRuleにおけるtreatPhpDocTypesAsCertainの処理改善 PHPStan Proの設定可能なDNSサーバー、およびXdebugの警告表示前のアンロード試行 …
改善点 大きな.phpベースラインファイルを検出し、PHPStanの速度低下に関する警告を出す バグ修正 class_exists()後のインライン@varで不明なクラスを報告しない Ds\Map::get()の@throws推論を改善 sprintf/printfで非公式指定子のサポート 内部機能 拡張イ…
Fixed basic auth failures resulting in infinite retry loop (#11320) Fixed GitHub rate limit reporting (#11366) Fixed InstalledVersions error in Composer 1 compatibility edge case (#11304) Fixed issue displaying solver problems with branch …
Backed enums - dynamic return type extension for from() and tryFrom() (phpstan/phpstan-src@edcaaba) など github.com
improvements Remove 3 leading spaces in PHAR (#2254), #8952, thanks @ruudk! Add missing newline at the end of the file (#2254), thanks @ruudk! RuleError interfaces are part of BC promise (phpstan/phpstan-src@aed9319) Update nikic/php-parse…
improvements Add support for @not-deprecated annotation (#2255), #7422, thanks @stof! bugfixes Fix arithmetic operations with BenevolentUnionType (phpstan/phpstan-src@f882eff), #8938 Fix native return type of array_chunk() (phpstan/phpstan…
Allow generating baseline in .php format (phpstan/phpstan-src@8260032), #8870 See documentation: https://phpstan.org/user-guide/baseline#php-baseline-format-instead-of-neon github.com
Fixed URL sanitizer to handle new GitHub personal access tokens format (#11137) Fixed cache keys to allow _ to avoid conflicts between package names like a-b and a_b (#11229) Fixed handling of --ignore-platform-req with upper-bound ignores…
Enums do not allow dynamic properties (phpstan/phpstan-src@0aa7f41) Support integer ranges in pow() (#1904), #5614, thanks @staabm! Revert for performance reasons: Improve expression type resolving of superglobals (phpstan/phpstan-src@02e1…
Only analysis FileExcluder excludes stub files (phpstan/phpstan-src@8ef5163) github.com
Improve constant string union handling for concat and encapsed string (#2057), thanks @schlndh! PhpVersion: supportsDisjunctiveNormalForm (#2130), thanks @janedbal! Constant scalar types might accept general type from the same family (#213…
BC Warning: To prevent abuse of our includeFile() function it is now gone, it was not part of the official API but may still cause issues if some code incorrectly relied on it (#11015) Improved version guessing of require command to use th…
Various performance optimizations from @staabm (#2098, #2099, #2100, #2101, #2103, #2104) Resolve parameter types only when checkArgumentTypes=true (#2106), thanks @staabm! Keep NeverType isExplicit flag in TypeCombinator::intersect() (#21…
Fix invariance composition (#2054), thanks @jiripudil! など github.com
公式ドキュメントを見たらよかった。
Bugfixes Function signature fixes Internals github.com
AccessoryArrayListType is part of BC promise (#1967), thanks @enumag! など github.com
とか PHPDoc-based type narrowing with @phpstan-assert, @phpstan-assert-if-true, @phpstan-assert-if-false (#1317), #7110, #8186 github.com
最新版は1.8.11なんだからもう0.x系なんか使うなよっていう強い意志を感じる github.com
Slightly optimize TypeCombinator::reduceArrays() even more (#1814) Micro optimizations in TypeCombinator (#1816) Improve array_search() type specifier performance (#1818), #8147 Rule registry now gets rules instances in lazy manner (phpsta…
BC Break: The json format of audit command now has reportedAt as an RFC3339 string instead of an object which was a mistake Fixed json format of audit command which was missing affectedVersions Fixed plugin commands not being loaded during…
improvementsは以下 Cover ExprPrinter by BC promise Improve isset specification in falsy scope Update phpstan/phpdoc-parser to 1.9.0 とかbugfixとか github.com
ignoreErrors: multiple messages and explicit reportUnmatched Improve JUnit error formatter Implement template type inference from conditional return type Optimize ConstantArrayType::isKeysSupersetOf() Enums cannot implement Serializable Co…
Fixed bash completion hanging when running as root without COMPOSER_ALLOW_SUPERUSER set Fixed handling of plugin activation when running as root without COMPOSER_ALLOW_SUPERUSER set so it always happens after prompting, or does not happen …
PHP 8.2: Support true pseudotypes in native unions (#1539) など github.com
Optimization: Degrade constant arrays if there's too many values recursively Improve dead code detection after nested function calls with conditional never return type EnumCaseObjectType constructor made part of BC promise など github.com