Skip to content

Fix InspectorTypeExtensionTest failure with PHPStan HEAD#991

Merged
mglaman merged 1 commit into
mainfrom
claude/fix-phpunit-type-test-SiW6A
May 16, 2026
Merged

Fix InspectorTypeExtensionTest failure with PHPStan HEAD#991
mglaman merged 1 commit into
mainfrom
claude/fix-phpunit-type-test-SiW6A

Conversation

@mglaman
Copy link
Copy Markdown
Owner

@mglaman mglaman commented May 16, 2026

PHPStan HEAD no longer infers mixed~null (introduced in 2.1.47) in this
scope after reassigning $array. Revert the fixture expectation to mixed.

The instanceof MixedType check in InspectorTypeExtension::specifyAssertAll()
remains correct as it handles both mixed and mixed~null inputs.

https://claude.ai/code/session_01HQDbrBSq6Hs6sZNLpZGq5z

PHPStan HEAD no longer infers mixed~null (introduced in 2.1.47) in this
scope after reassigning $array. Revert the fixture expectation to mixed.

The instanceof MixedType check in InspectorTypeExtension::specifyAssertAll()
remains correct as it handles both mixed and mixed~null inputs.

https://claude.ai/code/session_01HQDbrBSq6Hs6sZNLpZGq5z
@mglaman mglaman merged commit 1fc7c68 into main May 16, 2026
14 of 15 checks passed
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.

2 participants