Doctrinebundle: fails on clearing cache on PHP 7.2.20 if twig/twig is not installed

Created on 3 Jul 2019  ยท  16Comments  ยท  Source: doctrine/DoctrineBundle

PHP 7.2.20 fixes bug related to autoloading non-existing interfaces: https://bugs.php.net/bug.php?id=76980

Steps to reproduce:
Use PHP 7.2.20. Require this bundle (v1.11.2) in Symfony v4.3. Make sure twig/twig is not required and is not a transitive dependency of any of other packages (e.g. symfony/twig-bundle). Attempt to clear cache (php bin/console cache:clear).

Expected result:
Cache cleared successfully.

Actual result:
PHP Fatal error: During class fetch: Uncaught ReflectionException: Class Twig\Extension\AbstractExtension not found in /path/to/project/vendor/doctrine/doctrine-bundle/Twig/DoctrineExtension.php:13
Stack trace:
(...)

Most helpful comment

I did a quick test with php 7.3.8RC1. Cache warmup on @someniatko's reproducer completed without errors.

All 16 comments

Can you please show the stack trace for this exception?

PHP Fatal error:  During class fetch: Uncaught ReflectionException: Class Twig\Extension\AbstractExtension not found in /path/to/project/vendor/doctrine/doctrine-bundle/Twig/DoctrineExtension.php:13
Stack trace:
#0 /path/to/project/vendor/composer/ClassLoader.php(444): include('/path/to/pr...')
#1 /path/to/project/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/path/to/pr...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Doctrine\\Bundle...')
#3 [internal function]: spl_autoload_call('Doctrine\\Bundle...')
#4 /path/to/project/vendor/symfony/config/Resource/ClassExistenceResource.php(76): class_exists('Doctrine\\Bundle...')
#5 /path/to/project/vendor/symfony/dependency-injection/ContainerBuilder.php(353): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0)
#6 /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php(338): Symfony\Component\Depend in /path/to/project/vendor/doctrine/doctrine-bundle/Twig/DoctrineExtension.php on line 13
PHP Stack trace:
PHP   1. {main}() /path/to/project/bin/console:0
PHP   2. Symfony\Bundle\FrameworkBundle\Console\Application->run() /path/to/project/bin/console:38
PHP   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /path/to/project/vendor/symfony/console/Application.php:145
PHP   4. KNTelecom\Orders\Kernel->boot() /path/to/project/vendor/symfony/framework-bundle/Console/Application.php:65
PHP   5. KNTelecom\Orders\Kernel->initializeContainer() /path/to/project/vendor/symfony/http-kernel/Kernel.php:133
PHP   6. Symfony\Component\DependencyInjection\ContainerBuilder->compile() /path/to/project/vendor/symfony/http-kernel/Kernel.php:544
PHP   7. Symfony\Component\DependencyInjection\Compiler\Compiler->compile() /path/to/project/vendor/symfony/dependency-injection/ContainerBuilder.php:750
PHP   8. Symfony\Component\DependencyInjection\Compiler\AutowirePass->process() /path/to/project/vendor/symfony/dependency-injection/Compiler/Compiler.php:95
PHP   9. Symfony\Component\DependencyInjection\Compiler\AutowirePass->process() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:52
PHP  10. Symfony\Component\DependencyInjection\Compiler\AutowirePass->processValue() /path/to/project/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:46
PHP  11. Symfony\Component\DependencyInjection\Compiler\AutowirePass->doProcessValue() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:71
PHP  12. Symfony\Component\DependencyInjection\Compiler\AutowirePass->processValue() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:100
PHP  13. Symfony\Component\DependencyInjection\Compiler\AutowirePass->processValue() /path/to/project/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:82
PHP  14. Symfony\Component\DependencyInjection\Compiler\AutowirePass->doProcessValue() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:71
PHP  15. Symfony\Component\DependencyInjection\Compiler\AutowirePass->autowireCalls() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:123
PHP  16. Symfony\Component\DependencyInjection\Compiler\AutowirePass->autowireMethod() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:173
PHP  17. Symfony\Component\DependencyInjection\Compiler\AutowirePass->Symfony\Component\DependencyInjection\Compiler\{closure:/path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:231-244}() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:264
PHP  18. Symfony\Component\DependencyInjection\Compiler\AutowirePass->createTypeNotFoundMessage() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:233
PHP  19. Symfony\Component\DependencyInjection\Compiler\AutowirePass->createTypeAlternatives() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:384
PHP  20. Symfony\Component\DependencyInjection\Compiler\AutowirePass->populateAvailableTypes() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:428
PHP  21. Symfony\Component\DependencyInjection\Compiler\AutowirePass->populateAvailableType() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:324
PHP  22. Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass() /path/to/project/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:338
PHP  23. Symfony\Component\Config\Resource\ClassExistenceResource->isFresh() /path/to/project/vendor/symfony/dependency-injection/ContainerBuilder.php:353
PHP  24. class_exists() /path/to/project/vendor/symfony/config/Resource/ClassExistenceResource.php:76
PHP  25. spl_autoload_call() /path/to/project/vendor/symfony/config/Resource/ClassExistenceResource.php:76
PHP  26. Composer\Autoload\ClassLoader->loadClass() /path/to/project/vendor/symfony/config/Resource/ClassExistenceResource.php:76
PHP  27. Composer\Autoload\includeFile() /path/to/project/vendor/composer/ClassLoader.php:322
PHP  28. include() /path/to/project/vendor/composer/ClassLoader.php:444

This stacktrace is actually from project with symfony 4.2.9

I cannot reproduce this. Can you create a small example application that allows to do so?

@xabbuh After some debugging i've managed to create minimal reproduction. Now i am not sure if this is bug of this bundle or symfony's dependency-injection component.

You can see an example app here:
https://github.com/someniatko/doctrine-bundle-cache-clear/tree/master

The bug is triggered if there is some interface with more than one implementations, and then this interface is attempted to be used as a service (e.g. in controller's action arguments). Symfony then cannot autowire this service because of ambiguity and should show a user-friendly error message. In order to create such a message, symfony first "populates" all existing service definitions. It happens to be that DoctrineExtension (for twig) is among such definitions.

In Symfony\Component\DependencyInjection\Compiler\AutowirePass#populateAvailableType() there is an expression !$reflectionClass = $container->getReflectionClass($definition->getClass(), false). false means "do not throw an exception on failure". However, an exception is anyway thrown in PHP 7.2.20, but during class autoload stage.

I think some guy from Symfony should look at this, maybe @stof

Hello,

I have the same issue with PHP 7.2.20 and doctrine-bundle 1.10.2.

I don't have twig/twig required in my project, and the same exception is occuring:

!!  PHP Fatal error:  During class fetch: Uncaught ReflectionException: Class Twig_Extension not found in /var/www/html/default/vendor/doctrine/doctrine-bundle/Twig/DoctrineExtension.php:13
!!  Stack trace:
!!  #0 /var/www/html/default/vendor/composer/ClassLoader.php(444): include('/var/www/html/d...')
!!  #1 /var/www/html/default/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/html/d...')
!!  #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Doctrine\\Bundle...')
!!  #3 [internal function]: spl_autoload_call('Doctrine\\Bundle...')
!!  #4 /var/www/html/default/vendor/symfony/config/Resource/ClassExistenceResource.php(76): class_exists('Doctrine\\Bundle...')
!!  #5 /var/www/html/default/vendor/symfony/dependency-injection/ContainerBuilder.php(349): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0)
!!  #6 /var/www/html/default/vendor/symfony/dependency-injection/Compiler/AutowirePass.php(312): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass('Doctrine\\Bundle...', false)
!!  #7  in /var/www/html/default/vendor/doctrine/doctrine-bundle/Twig/DoctrineExtension.php on line 13

Not sure if it can help, but it always nice to hear that we are not alone with an issue :)

I can confirm the problem with php 7.2.20 and 7.3.7.

I've opened symfony/symfony#32395.

similar issue here, Iโ€Œ get below error:
PHP Fatal error: During class fetch: Uncaught ReflectionException: Class Symfony\Component\Templating\Helper\Helper not found

even Iโ€Œ upgraded PHP from 7.2 to 7.3.7, but the problem still remains.

As per https://github.com/php/php-src/commit/22ed362810c1b3a5ecb54ebd1d50d804c7fc3159, the change in PHP that causes this error will be reverted in the next patch releases for 7.2 and 7.3. For PHP 7.4, there needs to be a different solution. However, since this is caused by the DI component, I'd like to wait before working around this here. If this can't be solved in the DI component (which could always handle such incomplete services when they aren't used), then we'll have to change our service configs to only create services that have all their dependencies set. I'm closing this for now until we find a resolution for it in https://github.com/symfony/symfony/issues/32395.

If you use docker just fix your version to php:7.2.19

I was getting this error while using php:7.2-fpm-alpine image in bitbucket pipelines, then i updated image to php:7.3-fpm-alpine and it's worked.

I did a quick test with php 7.3.8RC1. Cache warmup on @someniatko's reproducer completed without errors.

@someniatko PHP 7.3.7-1 worked!

php7.3 bin/console cache:clear
[OK] Cache for the "dev" environment (debug=true) was successfully cleared.

PHP 7.2.20-1 not worked!

I have issue after composer update

ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class

What about running composer global require symfony/thanks && composer thanks now?
This will spread some ๐Ÿ’–  by sending a โ˜…  to the GitHub repositories of your fellow package maintainers.

> post-update-cmd: @auto-scripts
Executing script cache:clear
Executed script cache:clear  [KO]
 [KO]
Script cache:clear returned with error code 255
!!  PHP Fatal error:  During class fetch: Uncaught ReflectionException: Class Twig\Extension\AbstractExtension not found in /app/vendor/doctrine/doctrine-bundle/Twig/DoctrineExtension.php:13
!!  Stack trace:
!!  #0 /app/vendor/symfony/debug/DebugClassLoader.php(158): include('/app/vendor/doc...')
!!  #1 [internal function]: Symfony\Component\Debug\DebugClassLoader->loadClass('Doctrine\\Bundle...')
!!  #2 [internal function]: spl_autoload_call('Doctrine\\Bundle...')
!!  #3 /app/vendor/symfony/config/Resource/ClassExistenceResource.php(76): class_exists('Doctrine\\Bundle...')
!!  #4 /app/vendor/symfony/dependency-injection/ContainerBuilder.php(353): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(0)
!!  #5 /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php(338): Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass('Doctrine\\Bundle...', false)
!!  #6 /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php(324): Symfony\Component\DependencyInjection\Compiler\AutowirePass->populateAvailableType('doct in /app/vendor/doctrine/doctrine-bundle/Twig/DoctrineExtension.php on line 13
!!  PHP Stack trace:
!!  PHP   1. {main}() /app/bin/console:0
!!  PHP   2. Symfony\Bundle\FrameworkBundle\Console\Application->run() /app/bin/console:40
!!  PHP   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /app/vendor/symfony/console/Application.php:145
!!  PHP   4. App\Kernel->boot() /app/vendor/symfony/framework-bundle/Console/Application.php:65
!!  PHP   5. App\Kernel->initializeContainer() /app/vendor/symfony/http-kernel/Kernel.php:133
!!  PHP   6. Symfony\Component\DependencyInjection\ContainerBuilder->compile() /app/vendor/symfony/http-kernel/Kernel.php:543
!!  PHP   7. Symfony\Component\DependencyInjection\Compiler\Compiler->compile() /app/vendor/symfony/dependency-injection/ContainerBuilder.php:750
!!  PHP   8. Symfony\Component\DependencyInjection\Compiler\AutowirePass->process() /app/vendor/symfony/dependency-injection/Compiler/Compiler.php:95
!!  PHP   9. Symfony\Component\DependencyInjection\Compiler\AutowirePass->process() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:52
!!  PHP  10. Symfony\Component\DependencyInjection\Compiler\AutowirePass->processValue() /app/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:46
!!  PHP  11. Symfony\Component\DependencyInjection\Compiler\AutowirePass->doProcessValue() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:71
!!  PHP  12. Symfony\Component\DependencyInjection\Compiler\AutowirePass->processValue() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:100
!!  PHP  13. Symfony\Component\DependencyInjection\Compiler\AutowirePass->processValue() /app/vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php:82
!!  PHP  14. Symfony\Component\DependencyInjection\Compiler\AutowirePass->doProcessValue() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:71
!!  PHP  15. Symfony\Component\DependencyInjection\Compiler\AutowirePass->autowireCalls() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:123
!!  PHP  16. Symfony\Component\DependencyInjection\Compiler\AutowirePass->autowireMethod() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:173
!!  PHP  17. Symfony\Component\DependencyInjection\Compiler\AutowirePass->Symfony\Component\DependencyInjection\Compiler\{closure:/app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:231-244}() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:264
!!  PHP  18. Symfony\Component\DependencyInjection\Compiler\AutowirePass->createTypeNotFoundMessage() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:233
!!  PHP  19. Symfony\Component\DependencyInjection\Compiler\AutowirePass->createTypeAlternatives() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:384
!!  PHP  20. Symfony\Component\DependencyInjection\Compiler\AutowirePass->populateAvailableTypes() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:428
!!  PHP  21. Symfony\Component\DependencyInjection\Compiler\AutowirePass->populateAvailableType() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:324
!!  PHP  22. Symfony\Component\DependencyInjection\ContainerBuilder->getReflectionClass() /app/vendor/symfony/dependency-injection/Compiler/AutowirePass.php:338
!!  PHP  23. Symfony\Component\Config\Resource\ClassExistenceResource->isFresh() /app/vendor/symfony/dependency-injection/ContainerBuilder.php:353
!!  PHP  24. class_exists() /app/vendor/symfony/config/Resource/ClassExistenceResource.php:76
!!  PHP  25. spl_autoload_call() /app/vendor/symfony/config/Resource/ClassExistenceResource.php:76
!!  PHP  26. Symfony\Component\Debug\DebugClassLoader->loadClass() /app/vendor/symfony/config/Resource/ClassExistenceResource.php:76
!!  PHP  27. include() /app/vendor/symfony/debug/DebugClassLoader.php:158

my composer.json

adgoal-common/packages              0.19.0            
adgoal/aspect-mock                  3.1                Experimental Mocking Framework powered by Aspects
adgoal/goaop-framework              2.2.1              Framework for aspect-oriented programming in PHP.
beberlei/assert                     v3.2.1             Thin assertion library for input validation in business models.
behat/gherkin                       v4.6.0             Gherkin DSL parser for PHP 5.3
behat/transliterator                v1.2.0             String transliterator
codeception/base                    2.5.6              BDD-style testing framework
codeception/phpunit-wrapper         6.6.1              PHPUnit classes used by Codeception
codeception/specify                 1.0                BDD code blocks for PHPUnit and Codeception
codeception/stub                    2.1.0              Flexible Stub wrapper for PHPUnit's Mock Builder
codeception/verify                  1.0.0              BDD assertion library for PHPUnit
composer/semver                     1.5.0              Semver library that offers utilities, version constraint parsing and validation.
composer/xdebug-handler             1.3.3              Restarts a process without xdebug.
doctrine/annotations                v1.6.1             Docblock Annotations Parser
doctrine/cache                      v1.8.0             Caching library offering an object-oriented API for many cache backends
doctrine/collections                v1.6.2             PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common                     v2.10.0            PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, persistence interfaces, proxies, event system and m...
doctrine/dbal                       v2.9.2             Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/doctrine-bundle            1.11.2             Symfony DoctrineBundle
doctrine/doctrine-cache-bundle      1.3.5              Symfony Bundle for Doctrine Cache
doctrine/doctrine-migrations-bundle v1.3.2             Symfony DoctrineMigrationsBundle
doctrine/event-manager              v1.0.0             Doctrine Event Manager component
doctrine/inflector                  v1.3.0             Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator               1.2.0              A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer                      1.0.2              PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations                 v1.8.1             Database Schema migrations using Doctrine DBAL
doctrine/orm                        v2.6.3             Object-Relational-Mapper for PHP
doctrine/persistence                1.1.1              The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.
doctrine/reflection                 v1.0.0             Doctrine Reflection component
enqueue/amqp-ext                    0.9.12             Message Queue Amqp Transport
enqueue/amqp-tools                  0.9.12             Message Queue Amqp Tools
enqueue/async-command               0.9.12             Symfony async command
enqueue/dsn                         0.9.2              Parse DSN
enqueue/enqueue                     0.9.12             Message Queue Library
enqueue/enqueue-bundle              0.9.12             Message Queue Bundle
enqueue/fs                          0.9.12             Enqueue Filesystem based transport
enqueue/job-queue                   0.9.12             Job Queue
enqueue/null                        0.9.12             Enqueue Null transport
friendsofphp/php-cs-fixer           v2.15.1            A tool to automatically fix PHP code style
gedmo/doctrine-extensions           v2.4.37            Doctrine2 behavioral extensions
goaop/parser-reflection             2.0.0              Provides reflection information, based on raw source
guzzlehttp/guzzle                   6.3.3              Guzzle is a PHP HTTP client library
guzzlehttp/promises                 v1.3.1             Guzzle promises library
guzzlehttp/psr7                     1.6.1              PSR-7 message implementation that also provides common utility methods
jakubledl/dissect                   v1.0.1             Lexing and parsing in pure PHP
jdorn/sql-formatter                 v1.2.17            a PHP SQL highlighting library
jean85/pretty-package-versions      1.2                A wrapper for ocramius/package-versions to get pretty versions strings
layershifter/tld-database           1.0.68             Database abstraction for Public Suffix List
layershifter/tld-extract            2.0.1              TLDExtract, library for extracting parts of domain, e.q. domain parser
layershifter/tld-support            1.1.1              Support package for TLDDatabase and TLDExtract
liuggio/statsd-client-bundle        dev-master fa2e553 Provides a statsd client and simple ready-to-use support for #Symfony2 Application
liuggio/statsd-php-client           v1.0.18            Statsd (Object Oriented) client library for PHP
makasim/temp-file                   0.2.0              Temp file object
monolog/monolog                     1.24.0             Sends your logs to files, sockets, inboxes, databases and various web services
myclabs/deep-copy                   1.9.1              Create deep copies (clones) of your objects
nette/bootstrap                     v3.0.0             ๐Ÿ…ฑ Nette Bootstrap: the simple way to configure and bootstrap your Nette application.
nette/di                            v3.0.0             ๐Ÿ’Ž Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP 7.1 features.
nette/finder                        v2.5.0             ? Nette Finder: find files and directories with an intuitive API.
nette/neon                          v3.0.0             ? Nette NEON: encodes and decodes NEON file format.
nette/php-generator                 v3.2.3             ๐Ÿ˜ Nette PHP Generator: generates neat PHP code for you. Supports new PHP 7.3 features.
nette/robot-loader                  v3.2.0             ? Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.
nette/schema                        v1.0.0             ๐Ÿ“ Nette Schema: validating data structures against a given Schema.
nette/utils                         v3.0.1             ๐Ÿ›  Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
nikic/php-parser                    v4.2.2             A PHP parser written in PHP
ocramius/package-versions           1.4.0              Composer plugin that provides efficient querying for installed package versions (no runtime IO)
ocramius/proxy-manager              2.2.2              A library providing utilities to generate, instantiate and generally operate with Object Proxies
overtrue/phplint                    1.1.9              a php syntax check tool.
pdepend/pdepend                     2.5.2              Official version of pdepend to be handled with Composer
phar-io/manifest                    1.0.1              Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version                     1.0.1              Library for handling version information and constraints
php-cs-fixer/diff                   v1.3.0             sebastian/diff v2 backport support for PHP5.6
phpdocumentor/reflection-common     1.0.1              Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock   4.3.1              With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.
phpdocumentor/type-resolver         0.4.0             
phploc/phploc                       5.0.0              A tool for quickly measuring the size of a PHP project.
phpspec/prophecy                    1.8.1              Highly opinionated mocking framework for PHP 5.3+
phpstan/phpdoc-parser               0.3.5              PHPDoc parser with support for nullable, intersection and generic types
phpstan/phpstan                     0.11.12            PHPStan - PHP Static Analysis Tool
phpunit/php-code-coverage           5.3.2              Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator           1.4.5              FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template           1.2.1              Simple template engine.
phpunit/php-timer                   1.0.9              Utility class for timing
phpunit/php-token-stream            2.0.2              Wrapper around PHP's tokenizer extension.
phpunit/phpunit                     6.5.14             The PHP Unit Testing framework.
phpunit/phpunit-mock-objects        5.0.10             Mock Object library for PHPUnit
psr/cache                           1.0.1              Common interface for caching libraries
psr/container                       1.0.0              Common Container Interface (PHP FIG PSR-11)
psr/http-message                    1.0.1              Common interface for HTTP messages
psr/log                             1.1.0              Common interface for logging libraries
psr/simple-cache                    1.0.1              Common interfaces for simple caching
queue-interop/amqp-interop          0.8.1             
queue-interop/queue-interop         0.8.0              Promoting the interoperability of MQs objects. Based on Java JMS
ralouphie/getallheaders             3.0.3              A polyfill for getallheaders.
ramsey/uuid                         3.8.0              Formerly rhumsaa/uuid. A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID).
raven/raven                         0.15.0             A PHP client for Sentry (http://getsentry.com)
roave/security-advisories           dev-master ea693fa Prevents installation of composer packages with known security vulnerabilities: no API, simply require it
sebastian/code-unit-reverse-lookup  1.0.1              Looks up which function or method a line of code belongs to
sebastian/comparator                2.1.3              Provides the functionality to compare PHP values for equality
sebastian/diff                      2.0.1              Diff implementation
sebastian/environment               3.1.0              Provides functionality to handle HHVM/PHP environments
sebastian/exporter                  3.1.0              Provides the functionality to export PHP variables for visualization
sebastian/finder-facade             1.2.2              FinderFacade is a convenience wrapper for Symfony's Finder component.
sebastian/global-state              2.0.0              Snapshotting of global state
sebastian/object-enumerator         3.0.3              Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector          1.1.1              Allows reflection of object attributes, including inherited and non-public ones
sebastian/phpcpd                    3.0.1              Copy/Paste Detector (CPD) for PHP code.
sebastian/recursion-context         3.0.0              Provides functionality to recursively process PHP variables
sebastian/resource-operations       1.0.0              Provides a list of PHP built-in functions that operate on resources
sebastian/version                   2.0.1              Library that helps with managing the version number of Git-hosted PHP projects
someblackmagic/phpmd                2.7.1              PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.
squizlabs/php_codesniffer           3.4.2              PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.
symfony/browser-kit                 v4.2.11            Symfony BrowserKit Component
symfony/cache                       v4.2.11            Symfony Cache component with PSR-6, PSR-16, and tags
symfony/config                      v4.2.11            Symfony Config Component
symfony/console                     v4.2.11            Symfony Console Component
symfony/contracts                   v1.1.5             A set of abstractions extracted out of the Symfony components
symfony/css-selector                v4.2.11            Symfony CssSelector Component
symfony/debug                       v4.2.11            Symfony Debug Component
symfony/dependency-injection        v4.2.11            Symfony DependencyInjection Component
symfony/doctrine-bridge             v4.2.11            Symfony Doctrine Bridge
symfony/dom-crawler                 v4.2.11            Symfony DomCrawler Component
symfony/dotenv                      v4.2.11            Registers environment variables from a .env file
symfony/event-dispatcher            v4.2.11            Symfony EventDispatcher Component
symfony/filesystem                  v4.2.11            Symfony Filesystem Component
symfony/finder                      v4.2.11            Symfony Finder Component
symfony/flex                        v1.4.5             Composer plugin for Symfony
symfony/framework-bundle            v4.2.11            Symfony FrameworkBundle
symfony/http-foundation             v4.2.11            Symfony HttpFoundation Component
symfony/http-kernel                 v4.2.11            Symfony HttpKernel Component
symfony/inflector                   v4.2.11            Symfony Inflector Component
symfony/maker-bundle                v1.9.0             Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.
symfony/monolog-bridge              v4.2.11            Symfony Monolog Bridge
symfony/monolog-bundle              v3.4.0             Symfony MonologBundle
symfony/options-resolver            v4.2.11            Symfony OptionsResolver Component
symfony/orm-pack                    v1.0.6             A pack for the Doctrine ORM
symfony/polyfill-intl-idn           v1.11.0            Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-mbstring           v1.11.0            Symfony polyfill for the Mbstring extension
symfony/polyfill-php72              v1.11.0            Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/process                     v4.2.11            Symfony Process Component
symfony/property-access             v4.2.11            Symfony PropertyAccess Component
symfony/property-info               v4.2.11            Symfony Property Info Component
symfony/routing                     v4.2.11            Symfony Routing Component
symfony/serializer                  v4.2.11            Symfony Serializer Component
symfony/serializer-pack             v1.0.2             A pack for the Symfony serializer
symfony/stopwatch                   v4.2.11            Symfony Stopwatch Component
symfony/var-exporter                v4.2.11            A blend of var_export() + serialize() to turn any serializable data structure to plain PHP code
symfony/yaml                        v4.2.11            Symfony Yaml Component
theseer/fdomdocument                1.6.6              The classes contained within this repository extend the standard DOM to use exceptions at all occasions of errors instead of PHP warnings or notices. They also add various custom methods and shortcuts for ...
theseer/tokenizer                   1.1.3              A small library for converting tokenized PHP source code into XML and potentially other formats
webmozart/assert                    1.4.0              Assertions to validate method input/output with nice error messages.
zendframework/zend-code             3.3.1              provides facilities to generate arbitrary code using an object oriented interface
zendframework/zend-eventmanager     3.2.1              Trigger and listen to events within a PHP application

@wirwolf if you are using PHP 7.2.20 or 7.3.7 please upgrade to the latest patch releases. If you are on a different version, please create a separate issue for your problem.

Confirming that PHP 7.2.22 resolves the issue and the error goes away with no other changes.

Was this page helpful?
0 / 5 - 0 ratings