Skip to content

Added regression test#5652

Merged
staabm merged 6 commits into
phpstan:2.1.xfrom
staabm:regress
May 13, 2026
Merged

Added regression test#5652
staabm merged 6 commits into
phpstan:2.1.xfrom
staabm:regress

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented May 13, 2026

@staabm staabm requested a review from VincentLanglet May 13, 2026 05:51
DateInterval::createFromDateString('FAIL');
} catch (DateMalformedIntervalStringException $e) {
var_dump($e::class);
var_dump($e instanceof DateMalformedStringException);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This line feels weird in the regression test since its always false

Maybe better to not have it to avoid confusing people ?

@staabm staabm merged commit 7ff4c71 into phpstan:2.1.x May 13, 2026
363 of 377 checks passed
@staabm staabm deleted the regress branch May 13, 2026 07:42
@ondrejmirtes
Copy link
Copy Markdown
Member

Failures on PHP 7.4 on 2.1.x.

@staabm
Copy link
Copy Markdown
Contributor Author

staabm commented May 13, 2026

errors have been introduced in #5653 - I will fix them in #5655

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.

3 participants