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

PHP-CS-Fixer 3.47.0 changes class name Assert to assert #7747

Closed
sebastianbergmann opened this issue Jan 16, 2024 · 2 comments
Closed

PHP-CS-Fixer 3.47.0 changes class name Assert to assert #7747

sebastianbergmann opened this issue Jan 16, 2024 · 2 comments
Labels

Comments

@sebastianbergmann
Copy link
Contributor

Using https://github.com/sebastianbergmann/phpunit/blob/8.5/.php-cs-fixer.dist.php on the 8.5 branch of PHPUnit, the following unwanted change is made:

diff --git a/src/Framework/TestCase.php b/src/Framework/TestCase.php
index a0edaf12ff..8349341e77 100644
--- a/src/Framework/TestCase.php
+++ b/src/Framework/TestCase.php
@@ -114,7 +114,7 @@
 use Text_Template;
 use Throwable;
 
-abstract class TestCase extends Assert implements SelfDescribing, Test
+abstract class TestCase extends assert implements SelfDescribing, Test
 {
     private const LOCALE_CATEGORIES = [LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME];
@Wirone
Copy link
Member

Wirone commented Jan 16, 2024

It's because of use function assert; and will be fixed in either #7704 or #7705. Basically it's the same problem as in #7744.

@Wirone
Copy link
Member

Wirone commented Jan 16, 2024

Fixed in #7750.

@Wirone Wirone closed this as completed Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants