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

DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit #23

Open
rhengles opened this issue Dec 4, 2024 · 0 comments
Open

DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit #23

rhengles opened this issue Dec 4, 2024 · 0 comments

Comments

@rhengles
Copy link

rhengles commented Dec 4, 2024

When just created a empty, brand new symfony project from latest versions, and trying to add tests like in the docs:
https://symfony.com/doc/current/testing.html

Before creating your first test, install symfony/test-pack, which installs some other packages needed for testing (such as phpunit/phpunit):

composer require --dev symfony/test-pack

After the library is installed, try running PHPUnit:

php bin/phpunit

This shows the following messages in the terminal:

  1x: Method "Iterator::current()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Swoole\ArrayObject" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit

  1x: Method "Iterator::key()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Swoole\ArrayObject" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit

  1x: Method "Iterator::rewind()" might add "void" as a native return type declaration in the future. Do the same in implementation "Swoole\ArrayObject" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit

  1x: Method "Iterator::next()" might add "void" as a native return type declaration in the future. Do the same in implementation "Swoole\ArrayObject" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit

  1x: Method "ArrayAccess::offsetGet()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Swoole\ArrayObject" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit

  1x: Method "ArrayAccess::offsetExists()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Swoole\ArrayObject" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in DeprecationErrorHandler::shutdown from Symfony\Bridge\PhpUnit
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

No branches or pull requests

1 participant