Skip to content

Isolate intersection test toggle state - #6255

Open
simPod wants to merge 1 commit into
phpstan:2.2.xfrom
simPod:test/isolate-intersection-toggle-state
Open

Isolate intersection test toggle state#6255
simPod wants to merge 1 commit into
phpstan:2.2.xfrom
simPod:test/isolate-intersection-toggle-state

Conversation

@simPod

@simPod simPod commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Reused ParaTest workers can leave the global bleeding-edge toggle enabled. This changes the array shapes constructed by toggle-sensitive IntersectionType test fixtures and makes their expected trinary results depend on test order.

Construct those fixtures with bleeding edge disabled so they retain their intended unsealed-array semantics without changing the surrounding test state.

Failure in PR #6254: Tests with old PHPUnit (7.4, windows-latest).

Construct legacy ConstantArrayType fixtures with bleeding edge disabled so reused ParaTest workers cannot change the expected acceptance results.
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