Skip to content

Resolve missingType.callable and offsetAccess PHPStan errors - #8571

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-phpstan-code-fixes
Oct 9, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-phpstan-code-fixes

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Fix two PHPStan errors by code, then drop their now-stale ignores.

Changes

  • ArrayParametersMerger::mergeLeftToRightWithCallable() - add @param callable(mixed, mixed): mixed $mergeCallback signature, resolving missingType.callable.
  • RemoveParentDelegatingConstructorRector::isParameterAndArgCountAndOrderIdentical() - guard stmts before stmts[0], resolving offsetAccess.notFound (Offset 0). The guard cannot trigger given the caller already checks for exactly one statement, so behavior is unchanged.
  • Remove the two matching ignore entries from phpstan.neon.

Tests pass for both touched areas.

@TomasVotruba
TomasVotruba merged commit f48d37d into main Oct 9, 2026
50 checks passed
@TomasVotruba
TomasVotruba deleted the tv-phpstan-code-fixes branch October 9, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant