Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Preg - rework catching the error #7616

Merged
merged 2 commits into from
Dec 28, 2023

Conversation

keradus
Copy link
Member

@keradus keradus commented Dec 25, 2023

Extracted from #7606

PHPUnit migration is not as trivial as some could assume: 4dc05a0

changing the way of catching internal errors - as... well... you guessed it! PHPUnit is grabbing it with PHPUnit's internal handler!

@keradus keradus changed the title rework catching error chore: Preg - rework catching error Dec 25, 2023
@keradus keradus marked this pull request as ready for review December 25, 2023 00:17
@keradus keradus enabled auto-merge (squash) December 25, 2023 00:18
@coveralls
Copy link

Coverage Status

coverage: 94.763% (-0.03%) from 94.795%
when pulling 56c9583 on keradus:preg_reworked
into c0c69e5 on PHP-CS-Fixer:master.

@keradus keradus changed the title chore: Preg - rework catching error chore: Preg - rework catching the error Dec 25, 2023
keradus added a commit to keradus/PHP-CS-Fixer that referenced this pull request Dec 28, 2023
@@ -170,25 +170,27 @@ private static function removeUtf8Modifier($pattern)
private static function newPregException(int $error, string $errorMsg, string $method, array $patterns): PregException
Copy link
Member Author

Choose a reason for hiding this comment

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

I have the feeling that we could remove this method and use ExecutorWithoutErrorHandler directly in public methods, yet out of time on my side. Let's unblock PHPUnit v10 and hopefully we come back to refactor this Preg class afterwards.

@keradus keradus merged commit 8976174 into PHP-CS-Fixer:master Dec 28, 2023
25 checks passed
@keradus keradus deleted the preg_reworked branch December 28, 2023 17:01
danog pushed a commit to zoonru/PHP-CS-Fixer that referenced this pull request Feb 2, 2024
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.

None yet

2 participants