Skip to content

Chore(deps-dev): Bump phan/phan from 5.5.2 to 6.0.5#1882

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/composer/phan/phan-6.0.5
Jun 2, 2026
Merged

Chore(deps-dev): Bump phan/phan from 5.5.2 to 6.0.5#1882
github-actions[bot] merged 1 commit into
mainfrom
dependabot/composer/phan/phan-6.0.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 2, 2026

Copy link
Copy Markdown
Contributor

Bumps phan/phan from 5.5.2 to 6.0.5.

Release notes

Sourced from phan/phan's releases.

6.0.5

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)

6.0.4

  • 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)

6.0.3

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)

Phan 6.0.2

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)

... (truncated)

Changelog

Sourced from phan/phan's changelog.

Mar 27 2026, Phan 6.0.5

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)

Mar 23 2026, Phan 6.0.4

Bug fix:

  • 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)

Mar 23 2026, Phan 6.0.3

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)

Mar 5 2026, Phan 6.0.2

New features:

  • Add class, interface, and trait hierarchy tables to PhoundPlugin's SQLite database (#5443, #5460)
  • Add function/method signatures and parameter tables to PhoundPlugin's SQLite database (#5458)

... (truncated)

Commits
  • ebaecc7 Prepare 6.0.5 release
  • fc3eb09 Merge pull request #5511 from rodrigoprimo/docs/update-phpcs-repo-link
  • c1ac008 Update PHP_CodeSniffer repository link
  • 88e6c6e Merge pull request #5510 from phan/bug5500
  • a824b1f Add test
  • f093354 Use getAnalyzeCallableArgumentClosure()
  • 45c0c93 Merge pull request #5508 from phan/array-shape-depth-guard
  • 3cf251b Merge pull request #5507 from phan/stdclass-false-positives
  • 9633462 Add NEWS entry for override_return_types deprecation (#5506)
  • bdb8ed5 Add raw and formatted type string comments to depth guard test
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Jun 2, 2026
@dependabot dependabot Bot requested review from enjeck and silverkszlo as code owners June 2, 2026 07:35
@github-actions github-actions Bot enabled auto-merge June 2, 2026 07:35
Bumps [phan/phan](https://github.com/phan/phan) from 5.5.2 to 6.0.5.
- [Release notes](https://github.com/phan/phan/releases)
- [Changelog](https://github.com/phan/phan/blob/v6/NEWS.md)
- [Commits](phan/phan@5.5.2...6.0.5)

---
updated-dependencies:
- dependency-name: phan/phan
  dependency-version: 6.0.5
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/composer/phan/phan-6.0.5 branch from 077dc7e to 17ab23d Compare June 2, 2026 07:39
@github-actions github-actions Bot merged commit 91912ec into main Jun 2, 2026
27 of 28 checks passed
@github-actions github-actions Bot deleted the dependabot/composer/phan/phan-6.0.5 branch June 2, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants