Skip to content

Utilize BleedingEdgeToggle::withBleedingEdge to simplify another test#5931

Merged
staabm merged 1 commit into
phpstan:2.2.xfrom
staabm:bleed2
Jun 25, 2026
Merged

Utilize BleedingEdgeToggle::withBleedingEdge to simplify another test#5931
staabm merged 1 commit into
phpstan:2.2.xfrom
staabm:bleed2

Conversation

@staabm

@staabm staabm commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

No description provided.

IntegerRangeType::createAllGreaterThanOrEqualTo(1),
];

BleedingEdgeToggle::setBleedingEdge($bleedingEdgeBackup);

@staabm staabm Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test missed try/catch wrapping, so could theoretically miss to re-store the toggle in case of exceptions

@staabm staabm requested a review from VincentLanglet June 25, 2026 05:29
@staabm staabm merged commit 2e7116b into phpstan:2.2.x Jun 25, 2026
391 checks passed
@staabm staabm deleted the bleed2 branch June 25, 2026 06:48
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