Skip to content

fix: psalm 6.20 inference on Ipv6Formatter - #168

Merged
rasuvaeff merged 1 commit into
masterfrom
fix/ipv6formatter-psalm-6.20
Oct 19, 2026
Merged

rasuvaeff merged 1 commit into
masterfrom
fix/ipv6formatter-psalm-6.20

Conversation

@rasuvaeff

Copy link
Copy Markdown
Owner

Unblocks the dependabot CI-action PRs (#166, #167): their PHP 8.x checks fail in the psalm step — unrelated to the PR contents.

Psalm 6.20 (fresh composer update in CI) no longer preserves non-empty-list through array_map(dechex(...), ...): the inference of `` degraded to array<string>, and `implode(':', )` stopped counting as `non-empty-string`, tripping `MoreSpecificReturnType`/`LessSpecificReturnStatement` against the declared `@return non-empty-string`.

The invariant itself is unchanged — exactly self::GROUPS groups in, exactly that many hex strings out — so it is restated as a @var annotation on ``. No suppression, no baseline.

composer build on psalm 6.20.0: 1722 passed, 1 skipped (PASSED).

Psalm 6.20 no longer preserves non-empty-list through
array_map(dechex(...), ...), so implode() stopped being inferred as
non-empty-string and the declared @return non-empty-string tripped
MoreSpecificReturnType. The invariant is unchanged (exactly 8 groups in,
8 strings out), so it is restated as a @var annotation instead of a
suppression.
@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 60c6cba1-c264-447c-89e6-0e37227074e9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@rasuvaeff
rasuvaeff merged commit f958f7d into master Oct 19, 2026
17 checks passed
@rasuvaeff
rasuvaeff deleted the fix/ipv6formatter-psalm-6.20 branch October 19, 2026 09:57
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.

1 participant