by shigemk2

当面は技術的なことしか書かない

PHP

phpstan 1.10.51

PHP

Bleeding edge: ParamAttributesRule: プロパティ属性の改善 RecursiveIteratorIterator::__construct(): パラメータ型の精密化 PhpDocParser: PHPDocs内のエラー無視設定追加 改善点: ThrowExprTypeRuleの追加 スタブの分析改善 メモリ限界時のエラーメッセ…

phpstan 1.10.43

PHP

改善点 phpstan/phpdoc-parserのアップデート PhpStormスタブのHTML説明検出の修正 ReflectionEnumをジェネリック化 バグ修正 ??=の右側のスコープと式の前のスコープの統合 SplHeapなどの内部メソッドの親呼び出しの戻り値型の修正 stdClassに__getメソッド…

phpstan 1.10.39

PHP

改善点: 子プロセスでスローされた例外に関するより多くの情報が提供されるようになりました。 PHPStan Proでは、pro.tmpDir設定パラメータを上書きできるようになりました。 sha1ファイルハッシュを行う際のメモリ消費を最適化しました。 ResultCacheManage…

phpstan 2.6.1

PHP

revert github.com

phpstan 1.10.32

PHP

改善点 🔧 大量のPHPDocsに対してFileTypeMapperを最適化 (#2582), #9498 Carbon (nesbot/carbon) を使用するプロジェクトのパフォーマンス問題を修正 DumpParametersCommandを最適化 (phpstan/phpstan-src@379008a) github.com

phsptan 1.10.27

PHP

Bleeding edge stream_socket_client()のより正確なシグネチャ scandir()のより正確なシグネチャ extract()のより正確なシグネチャ 改善点 トレイト内で初期化されていないプロパティへのアクセスをクラスの代わりにトレイトで報告 基本的なルールを強制する…

phpstan 1.10.25

PHP

改善点: プロモートされたプロパティがリネームされたトレイトコンストラクタから来ることを理解します。(phpstan/phpstan-src@eafba2e) コンストラクタから呼び出されるメソッドが例外をスローしても、オブジェクトが初期化されていない状態にならないこと…

phpstan 1.10.22

PHP

最先端の機能: file()フラグ引数の精度向上(#2476, #2482) PHP 8以降で非静的メソッドは静的呼び出し可能として使用できない(#2420) flock()操作フラグの精度向上(#2477) call_user_func()のルール(#2479) 改善: constant()の戻り値拡張を追加(#2…

composer 2.5.8

PHP

インストールプロセス中にルートパッケージが既にリポジトリに追加されるエッジケースでの回帰を修正 (#11495) Windows上のEventDispatcherが@phpバイナリを使用する際にbatファイルを選択する問題を修正 (#11490) ICUがリソースバンドルを初期化できない場…

phpstan

PHP

multi-catch github.com

phpstan 1.10.16

PHP

Bleeding edge マルチ例外キャッチでのデッドタイプを報告 (#2399) message_type=2を持つerror_logエラー (#2428), #9380 改善点 CallableTypeとClosureType::describe() - phpdoc-parser Printerを使用して精度を向上 (phpstan/phpstan-src@30f60c1), #9268…

phpstan 1.10.15

PHP

最先端の機能 InvalidPhpDocTagValueRule: エラーメッセージにPHPDocの行番号を含む このファイルを含めると、後方互換性の保証はありません。このファイルを含めると、挙動や報告されるエラーがマイナーバージョンで変更される可能性があります。 改善点 …

phpstan 1.10.14

PHP

github.com Bleeding edge filter_inputのタイプパラメータチェック (#2271)、@herndlm に感謝 プロジェクトのphpstan.neonに以下の設定を追加して、最先端の機能を試すことができる ``` includes: vendor/phpstan/phpstan/conf/bleedingEdge.neon ``` ただ…

phpstan 1.10.13

PHP

修正: 内部エラー FilterVarArrayDynamicReturnTypeExtension mixed 入力 #2338 #9178 github.com

phpstan 1.10.10

PHP

改善点 JsonErrorFormatter - 識別子を含める (phpstan/phpstan-src@6910be2) AccessPropertiesRule - 記事リンク付きのヒント (phpstan/phpstan-src@e6e2d1a) Xdebugが有効時の--xdebugに関する注意事項 (phpstan/phpstan-src@1d4ede1) バグ修正 IssetChe…

phpstan 1.10.9

PHP

PHPUnit 10 dataProvidersに関連する静的メソッドの改善 StrictComparisonOfDifferentTypesRuleとConstantLooseComparisonRuleにおけるtreatPhpDocTypesAsCertainの処理改善 PHPStan Proの設定可能なDNSサーバー、およびXdebugの警告表示前のアンロード試行 …

phpstan 1.10.8

PHP

改善点 大きな.phpベースラインファイルを検出し、PHPStanの速度低下に関する警告を出す バグ修正 class_exists()後のインライン@varで不明なクラスを報告しない Ds\Map::get()の@throws推論を改善 sprintf/printfで非公式指定子のサポート 内部機能 拡張イ…

composer 2.5.5

PHP

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 …

phpstan 1.10.7

PHP

Backed enums - dynamic return type extension for from() and tryFrom() (phpstan/phpstan-src@edcaaba) など github.com

phpstan 1.10.4

PHP

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…

phpstan 1.10.3

PHP

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…

phpstan 1.10.2

PHP

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

composer 2.2.19

PHP

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…

phpstan 1.9.12

PHP

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…

phpstan 1.9.10

PHP

Only analysis FileExcluder excludes stub files (phpstan/phpstan-src@8ef5163) github.com

phpstan 1.9.5

PHP

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…

composer 2.5.0

PHP

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…

phpstan 1.9.4

PHP

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…

phpstan 1.9.3

PHP

Fix invariance composition (#2054), thanks @jiripudil! など github.com

PHP fwrite

PHP

公式ドキュメントを見たらよかった。