Skip to content

Upgrade to Symfony 5.4 #1268

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

Merged
merged 1 commit into from
Dec 2, 2021
Merged

Upgrade to Symfony 5.4 #1268

merged 1 commit into from
Dec 2, 2021

Conversation

javiereguiluz
Copy link
Member

No description provided.

@stof
Copy link
Member

stof commented Nov 5, 2021

you should regenerate the phpstan baseline as you upgraded it to 1.0 and messages have changed.

@javiereguiluz
Copy link
Member Author

@stof thanks for your nice and detailed review! I've done all the requested changes.

I'm only missing the "regenerate the phpstan baseline". I don't use PhpStan so could anyone please tell me the exact command to run for this case? Thanks a lot!

@stof
Copy link
Member

stof commented Nov 5, 2021

@javiereguiluz vendor/bin/phpstan analyse --generate-baseline

@javiereguiluz
Copy link
Member Author

After properly upgrading dependencies, I'm seeing these indirect deprecations:

Testing
...................................................               51 / 51 (100%)
OK (51 tests, 116 assertions)

Remaining indirect deprecation notices (5)

  1x: Since symfony/doctrine-bridge 5.4: The "Symfony\Bridge\Doctrine\SchemaListener\PdoCacheAdapterDoctrineSchemaSubscriber" class is deprecated, use "Symfony\Bridge\Doctrine\SchemaListener\DoctrineDbalCacheAdapterSchemaSubscriber" instead.
    1x in AddUserCommandTest::testCreateUserNonInteractive from App\Tests\Command

  1x: Method "Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder()" might add "TreeBuilder" as a native return type declaration in the future. Do the same in implementation "Twig\Extra\TwigExtraBundle\DependencyInjection\Configuration" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AddUserCommandTest::testCreateUserNonInteractive from App\Tests\Command

  1x: Method "Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder()" might add "TreeBuilder" as a native return type declaration in the future. Do the same in implementation "HtmlSanitizer\Bundle\DependencyInjection\Configuration" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AddUserCommandTest::testCreateUserNonInteractive from App\Tests\Command

  1x: Method "Symfony\Component\Console\Command\Command::execute()" might add "int" as a native return type declaration in the future. Do the same in child class "Doctrine\DBAL\Tools\Console\Command\RunSqlCommand" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AddUserCommandTest::testCreateUserNonInteractive from App\Tests\Command

  1x: Method "Doctrine\DBAL\Driver\Connection::quote()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "DAMA\DoctrineTestBundle\Doctrine\DBAL\AbstractStaticConnection" now to avoid errors or add an explicit @return annotation to suppress this message.
    1x in AddUserCommandTest::testCreateUserNonInteractive from App\Tests\Command

@GromNaN
Copy link
Member

GromNaN commented Nov 24, 2021

You can upgrade to v5.4-RC1, all deprecation notices have been solved.

@javiereguiluz
Copy link
Member Author

We're running deprecation-free. I had to set tgalopin/html-sanitizer-bundle to dev-master, but we'll have a new stable version soon, so this is temporary.

@javiereguiluz javiereguiluz changed the title Upgrade to Symfony 5.4 Upgrade to Symfony 5.4 and 6.0 Nov 25, 2021
@javiereguiluz javiereguiluz changed the title Upgrade to Symfony 5.4 and 6.0 Upgrade to Symfony 5.4 Nov 25, 2021
Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

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

phpstan --generate-baseline and we're good to go, I guess. 🎉

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.

4 participants