Skip to content

chore(deps-dev): update phan/phan requirement from ^5.4 to ^5.4 || ^6.0 - #304

Merged
phil-davis merged 2 commits into
mainfrom
dependabot/composer/phan/phan-tw-5.4or-tw-6.0
Jun 30, 2026
Merged

phil-davis merged 2 commits into
mainfrom
dependabot/composer/phan/phan-tw-5.4or-tw-6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 18, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Updates the requirements on phan/phan to permit the latest version.

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

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels May 18, 2026
@phil-davis

Copy link
Copy Markdown
Contributor

@dependabot rebase

dependabot Bot and others added 2 commits June 30, 2026 14:56
Updates the requirements on [phan/phan](https://github.com/phan/phan) to permit the latest version.
- [Release notes](https://github.com/phan/phan/releases)
- [Changelog](https://github.com/phan/phan/blob/v6/NEWS.md)
- [Commits](phan/phan@5.4.0...6.0.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
@phil-davis
phil-davis force-pushed the dependabot/composer/phan/phan-tw-5.4or-tw-6.0 branch from 17ad755 to eea2c66 Compare June 30, 2026 05:29
@kw-security

kw-security commented Jun 30, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@phil-davis

Copy link
Copy Markdown
Contributor

I rebased it myself, added a fix to a data type declaration in a test (to get phan v6 to pass), and required phan v6 for all CI.

@phil-davis

Copy link
Copy Markdown
Contributor

Added PHP 8.4 and 8.5 to the unit and integration test matrix.

@phil-davis
phil-davis force-pushed the dependabot/composer/phan/phan-tw-5.4or-tw-6.0 branch from f97658c to eea2c66 Compare June 30, 2026 05:48
@phil-davis
phil-davis merged commit de8bd54 into main Jun 30, 2026
27 of 29 checks passed
@phil-davis
phil-davis deleted the dependabot/composer/phan/phan-tw-5.4or-tw-6.0 branch June 30, 2026 05:53
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.

2 participants