-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Make assertEquals declarations compatible #51
Comments
I do not understand what you are trying to report. |
PHP 7.2 |
Please share the output of |
|
Do you use |
No feedback, closing. |
@sebastianbergmann Same issue here. I use the local PHPUnit to run the tests.
Output of
My PHP version:
|
Hi all, I see this issue couldn't be resolved due to the reporter not giving feedback. Anyone ever bothered to look into this anyways? I am on PHP 7.2.7 and our code-base is running PHPUnit 5.5.5. I am getting th exact same error. I tried to use the I cannot apply upgrades on either the application I am working with nor PUPUnit itself without touching on its dependency graph that may have deep relations with other non-dev packages. Any ideas on how this can be fixed? I am guessing the issue lies with Type-Hinting on the Thanks |
@sebastianbergmann maybe we can reopen this? |
I have the same error on php 7.2:
The same on php 5.6 works fine:
I didn't dive into details yet, so I am not completely sure that it is related to php version but looks like. This is part from
composer info:
Could you recommend something? |
Note - for those of you coming here later. This is related to #30, which was manually merged. Possible solutions:
|
I run |
@sebastianbergmann : Can we a newer version to fix this for PHP 7.3.x. Because my building agent by default picks the latest version of PHP and this bug is failing my build. |
Same for me with php7.2, |
In case anyone else stumbles on this issue, upgrading sebastian/comparator to v1.2.4 worked for me
|
@sebastianbergmann |
Hello , and run : and everything is back to normal |
I'm experiencing this issue in a project of mine, when I try to test with PHP 7.2 (so, with phpunit 8.5.18). |
I am also experiencing the same issue, When we run the phpunit test command. Getting the following error.
Is there any work around for solving this issue. My PHP version is PHP 7.3.24 |
Upgraded the PHP version to 7.4.12, then solved the issue. This is on mac. |
I have the same issue php8.1 /symfony6.2
|
@elitecolors The declaration of the |
@vichanse it's not a good idea since this will land to other problems. In my case the problem was with Alice bundle I find a solution to add auto dump to json config file. I will add more details tomorrow. The problem that Alice bundle use old version for comparator. |
It was just a temporary fix time to find where the problem comes from. Can you share your solution ? I have alice bundle installed too |
yes in composer.json section config add
|
Excellent. Thank you @elitecolors . It works like a charm |
Hey @elitecolors i would like to understand what does the prepend-autoloader that helped fix the problem 🤷🏾♂️. Can you explain it to me ? |
roles assignment by dino
Tag: 2.1.3
https://github.com/sebastianbergmann/comparator/pull/30/files
Missing changes, failing on PHPUnit
The text was updated successfully, but these errors were encountered: