Thanks to visit codestin.com
Credit goes to github.com

Skip to content

deprecation warning during container build destroying builds #12868

Closed
@dbu

Description

@dbu

This over-eager deprecation warning destroys our builds: https://travis-ci.org/FriendsOfSymfony/FOSHttpCacheBundle/jobs/42759970

1) FOS\HttpCacheBundle\Tests\Functional\Command\InvalidatePathCommandTest::testExecute

Definition::setFactoryClass() is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead.

/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Definition.php:101

/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/ResolveDefinitionTemplatesPass.php:84

/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/ResolveDefinitionTemplatesPass.php:50

/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php:117

/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:615

/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:559

/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:127

/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php:141

/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php:33

/home/travis/build/FriendsOfSymfony/FOSHttpCacheBundle/Tests/Functional/Command/InvalidatePathCommandTest.php:20

phar:///home/travis/.phpenv/versions/5.5.18/bin/phpunit/phpunit/TextUI/Command.php:186

phar:///home/travis/.phpenv/versions/5.5.18/bin/phpunit/phpunit/TextUI/Command.php:138

In general, triggering deprecation errors is a pain for reusable components that need to test against several symfony versions. Please use them sparingly. Or have a test in blackfire.io instead, for people that want to get ready for symfony 3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions