Update dependency phan/phan to v6.0.5#784
Merged
renovate[bot] merged 1 commit intomainfrom Mar 27, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.0.1→6.0.5Release Notes
phan/phan (phan/phan)
v6.0.5Compare Source
Deprecations:
override_return_typesconfig flag in favor oftrack_all_inferred_types, which subsumes its behavior and also accumulates concrete types on interface-typed properties (#5476)Bug fixes:
json_decode()false positives by improving return type inference for various flag combinations (#5503)@inheritDocfalse positives (#5504)ArrayShapeType::withStaticResolvedInContextto prevent infinite recursion on self-referential array shapes (#5508)v6.0.4Compare Source
json_decode($data, flags: JSON_OBJECT_AS_ARRAY)) (#5502)v6.0.3Compare Source
New features:
AnalyzeCallableArgumentCapabilityplugin interface that automatically fires for every callable-typed argument across the codebase, eliminating boilerplate for callable analysis plugins (#5483, #5499)CaseMismatchPluginfor detecting casing inconsistencies in class, function, method, and namespace references (#5480)--analyze-until-convergenceflag and improve--analyze-twiceto only re-analyze files whose inferred types changed (#5488, #5495)track_all_inferred_typesconfig flag to accumulate concrete types on interface-typed properties across assignments (#5476)--from-checkstyleoption totool/add_suppressions.phpto accept Phan checkstyle XML output (#5482)@inheritDocis used with nothing to inherit (#5404, #5498)Bug fixes:
PhanTypeMismatchArgumentwhen passingpositive-intornegative-intto afloatparameter (#5467)AnalyzeFunctionCallCapabilityandReturnTypeOverrideCapabilityplugin closures — args are now normalized to declaration order (#5483, #5499)isset()/empty()type narrowing for static properties (self::$prop) (#5471, #5472)PhanCoalescingNeverUndefinedfor static properties (#5473)class-string<T>template resolution dropping literal string types (#5474)PhanTypeExpectedObjectPropAccessfor template types (#5479, #5485)mixedin dim access (#5478)expressionHasClassReferenceto recurse into nested arrays during large-array trimming (#5470)stdClassshape type narrowing losing dynamic property types in branches (#5486)target_php_versioninstead ofPHP_VERSION_IDfor template stub selection (#5489, #5492)PhanInfiniteRecursionfalse positive when throwing expressions in non-call contexts (#5490, #5493)PhanUnreferencedUseFunctionfor functions used in hook bodies,PhanReadOnlyPHPDocPropertyfor backed properties with hooks, andPhanTypeInvalidPropertyDefaultRealfor virtual properties (#5491, #5494)try/catch/finallyblocks when finally is present (#5496, #5497)Miscellaneous:
RedisArraystub definitions (#5481)v6.0.2: Phan 6.0.2Compare Source
New features:
m/PR review followup from #5443 phan/phan#5460))
0and''— inferpositive-int/negative-intfor ordering comparisons, andnon-zero-int/non-empty-stringfor inequality comparisons (#5452)
Phan-Agents.mdguidance document for coding agents (#5461)Bug fixes:
PhanRedundantValueComparisonwhen real type resolution returns no types (#5422)PhanPossiblyUndeclaredMethod/PhanPossiblyNonClassMethodCallfrom wider union type assignments to typed properties ([#5440](https://github.com/wrong assumptions on static class members phan/phan#5440))
PhanRedundantCondition/PhanCoalescingNeverNullforisset()and??onArrayAccessobjects ([#5441](#5441))
InvalidFQSENExceptioncrash on method calls onnon-empty-mixedtyped variables (#5442)PhanTypePossiblyInvalidDimOffsetwarnings when accessing keys onmixed-typed variables with inferred array shapes ([#5444](https://github.com/Array element incorrectly inferred as possibly-unset when using ternary phan/phan#5444))
PhanTypePossiblyInvalidDimOffsetwhenarray<string,mixed>orarray<int,mixed>is in the union type ([#5455](https://github.com/phan/phan/issues/5455))
get_class()return type to erase template parameters fromclass-string<>(#5454)PhanUnreferencedUseNormalwhen class references (A::class,A::CONST) appear in large arrays subject to literal array summarization (#5462)proc_openno longer passes file descriptors (#5464)Miscellaneous:
felixfbecker/advanced-json-rpcwithdanog/advanced-json-rpc, allowsabre/event6.0 (#5450)Configuration
📅 Schedule: Branch creation - "before 4pm every weekday except before 9am every weekday" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.