Skip to content

Update dependency phan/phan to v6.0.5#784

Merged
renovate[bot] merged 1 commit intomainfrom
renovate/phan-phan-6.x
Mar 27, 2026
Merged

Update dependency phan/phan to v6.0.5#784
renovate[bot] merged 1 commit intomainfrom
renovate/phan-phan-6.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 27, 2026

This PR contains the following updates:

Package Change Age Confidence
phan/phan 6.0.16.0.5 age confidence

Release Notes

phan/phan (phan/phan)

v6.0.5

Compare Source

Deprecations:

  • Deprecate override_return_types config flag in favor of track_all_inferred_types, which subsumes its behavior and also accumulates concrete types on interface-typed properties (#​5476)

Bug fixes:

  • Fix json_decode() false positives by improving return type inference for various flag combinations (#​5503)
  • Fix @inheritDoc false positives (#​5504)
  • Add depth guard to ArrayShapeType::withStaticResolvedInContext to prevent infinite recursion on self-referential array shapes (#​5508)

v6.0.4

Compare Source

  • Fix crash in DependentReturnTypeOverridePlugin when functions are called with named arguments that skip positional parameters (e.g. json_decode($data, flags: JSON_OBJECT_AS_ARRAY)) (#​5502)

v6.0.3

Compare Source

New features:

  • Add AnalyzeCallableArgumentCapability plugin interface that automatically fires for every callable-typed argument across the codebase, eliminating boilerplate for callable analysis plugins (#​5483, #​5499)
  • Add CaseMismatchPlugin for detecting casing inconsistencies in class, function, method, and namespace references (#​5480)
  • Add --analyze-until-convergence flag and improve --analyze-twice to only re-analyze files whose inferred types changed (#​5488, #​5495)
  • Add track_all_inferred_types config flag to accumulate concrete types on interface-typed properties across assignments (#​5476)
  • Add --from-checkstyle option to tool/add_suppressions.php to accept Phan checkstyle XML output (#​5482)
  • Warn when @inheritDoc is used with nothing to inherit (#​5404, #​5498)
  • Propagate PhoundPlugin callsites up the inheritance hierarchy (#​5484)
  • Track callables passed to higher-order array functions in PhoundPlugin (#​5475)

Bug fixes:

  • Fix false positive PhanTypeMismatchArgument when passing positive-int or negative-int to a float parameter (#​5467)
  • Fix named arguments breaking AnalyzeFunctionCallCapability and ReturnTypeOverrideCapability plugin closures — args are now normalized to declaration order (#​5483, #​5499)
  • Fix isset()/empty() type narrowing for static properties (self::$prop) (#​5471, #​5472)
  • Fix false positive PhanCoalescingNeverUndefined for static properties (#​5473)
  • Fix class-string<T> template resolution dropping literal string types (#​5474)
  • Fix false positive PhanTypeExpectedObjectPropAccess for template types (#​5479, #​5485)
  • Preserve typed generic array element types alongside mixed in dim access (#​5478)
  • Fix expressionHasClassReference to recurse into nested arrays during large-array trimming (#​5470)
  • Fix stdClass shape type narrowing losing dynamic property types in branches (#​5486)
  • Fix stub loading to respect target_php_version instead of PHP_VERSION_ID for template stub selection (#​5489, #​5492)
  • Fix PhanInfiniteRecursion false positive when throwing expressions in non-call contexts (#​5490, #​5493)
  • Fix three false positives related to PHP 8.4 property hooks: PhanUnreferencedUseFunction for functions used in hook bodies, PhanReadOnlyPHPDocProperty for backed properties with hooks, and PhanTypeInvalidPropertyDefaultReal for virtual properties (#​5491, #​5494)
  • Fix variable scope handling in try/catch/finally blocks when finally is present (#​5496, #​5497)

Miscellaneous:

  • Improve RedisArray stub definitions (#​5481)

v6.0.2: Phan 6.0.2

Compare Source

New features:

  • Add class, interface, and trait hierarchy tables to PhoundPlugin's SQLite database (#​5443, [#​5460](https://github.co
    m/PR review followup from #5443 phan/phan#5460))
  • Add function/method signatures and parameter tables to PhoundPlugin's SQLite database (#​5458)
  • Improve type narrowing for comparisons with 0 and '' — infer positive-int/negative-int for ordering comparisons, and non-zero-int/non-empty-string
    for inequality comparisons (#​5452)
  • Add Phan-Agents.md guidance document for coding agents (#​5461)

Bug fixes:

Miscellaneous:

  • Replace felixfbecker/advanced-json-rpc with danog/advanced-json-rpc, allow sabre/event 6.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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge March 27, 2026 18:09
@renovate renovate bot merged commit 4072124 into main Mar 27, 2026
7 checks passed
@renovate renovate bot deleted the renovate/phan-phan-6.x branch March 27, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants