-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
ReflectionType::__toString() is deprecated in PHP 7.4 #3728
Comments
PHPUnit 8.1.3 is no longer supported. Please try with PHPUnit 8.2.3, thanks. |
Awesome, I got it back working using the latest version. Thank you Sebastian... |
We have the same issue on PHPUnit 6.5, and the framework does not support > 6 here. EDIT |
@dereuromark i have similar issue in Crunz, here is how i solved it: create patched class ( |
Quite annoying to have to do that on like 30 repos etc though :/ |
I am sure that Sebastian does not give support for PHPUnit 6 to get PHP 7.4 running as he is very strict when it comes to end of life. 😆 Not a good idea to comment a closed issue aswell, open a fresh one with your description. |
Actually I'm using PHPUnit 5.7, because I need PHP 5.6 support :) |
You cannot support both as new PHPUnit versions enforce return types for setup() and tearDown() ... so even with fancy CI that installes PHPUnit according to PHP version: this is a dead end!
|
…punit#3728). Remove deprecated testing methods calls.
* update composer for Laravel 6.0.4 * update composer for Laravel ^6.0 * update composer for Laravel ^7.0 * Update composer.json to use Laravel 6, 7 and 8 * Update Travis CI config to use PHP >= 7.2 * Remove HipChat and Raven drivers because Monolog 2.0 removed them * Laravel >= 8.0 doesn't support PHP 7.2 Update Travis CI config to ignore errors on PHP 7.2 * Tweak Travis CI config To ignore errors only when testing with PHP 7.2 and Laravel 8 * Fix Travis CI config To allow failures only when testing with PHP 7.2 and Laravel 8 * Clean Travis CI config * Use 'next' branch for monolog-mailgun and monolog-sms * Fix PHP 7.4 error with PHPUnit See: sebastianbergmann/phpunit#3728 * PHP 8.0 support * Add Sentry driver to replace Raven Because RavenHandler was removed from Monolog since version 2.0 * Update CHANGELOG and README * Fix Sentry driver Fix commit fd624a1 * Run tests with PHP 8.0 on Travis CI * Clean Composer file Use the upcoming 'tylercd100/monolog-mailgun' 3.0.0 and 'tylercd100/monolog-sms' 2.0.0 versions Co-authored-by: Robbie Love <Robbie@ubiquilife.com>
* update composer for Laravel 6.0.4 * update composer for Laravel ^6.0, raise minimum php version to 7.1 * update input facade to request * fix Components/Notifier.php * update composer.json for Laravel 7 * update composer.json for Laravel 7 * update Exception classes to Throwables * more fixes but one part unsure (ddd()) * more fixes * revert change in NotifierFailedException.php * Support Laravel 6, 7 and 8 With PHP >= 7.2 * Clean Travis Ci config * Use 'next' branch for laravel-notify * Update README.md To use Throwable instead of Exception for the report() method signature * Fix PHP 7.4 error with PHPUnit See: sebastianbergmann/phpunit#3728 * PHP 8.0 support * Add Sentry driver to replace Raven Because RavenHandler was removed from Monolog since version 2.0 * Update CHANGELOG and README * Clean Composer file Use the upcoming 'tylercd100/laravel-notify' 4.0.0 version * Remove prefer lowest from travis Co-authored-by: Robbie Love <Robbie@ubiquilife.com> Co-authored-by: Tyler Arbon <tyler@arbonwebsolutions.com>
@sebastianbergmann Could you please let me know what should be the compatible version of I am getting this error - allure-framework/allure-phpunit#40 Thanks |
Hello,
I have an issue on Travis CI using PHPUnit with
convertWarningsToExceptions
.It only happens in tests using
getMockBuilder
so this must be related to that the deprecation (since PHP 5.5.0) that now is throwing an warning: https://php.net/manual/de/reflectiontype.tostring.phpThe text was updated successfully, but these errors were encountered: