8000 [Yaml] Call to undefined function Symfony\Component\Yaml\array_is_list() · Issue #43943 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Yaml] Call to undefined function Symfony\Component\Yaml\array_is_list() #43943
Closed
@dmaicher

Description

@dmaicher

Symfony version(s) affected

v5.4.0-BETA1

Description

I just tried installing v5.4.0-BETA1 on one of my projects.

Similar to #42280 it seems some polyfills are not loaded again:

> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
PHP Fatal error:  Uncaught Error: Call to undefined function Symfony\Component\Yaml\array_is_list() in /var/www/project/symfony/vendor/symfony/yaml/Inline.php:214
Stack trace:
#0 /var/www/project/symfony/vendor/symfony/yaml/Dumper.php(64): Symfony\Component\Yaml\Inline::isHash()
#1 /var/www/project/symfony/vendor/symfony/yaml/Yaml.php(100): Symfony\Component\Yaml\Dumper->dump()
#2 /var/www/project/symfony/vendor/incenteev/composer-parameter-handler/Processor.php(63): Symfony\Component\Yaml\Yaml::dump()
#3 /var/www/project/symfony/vendor/incenteev/composer-parameter-handler/ScriptHandler.php(34): Incenteev\ParameterHandler\Processor->processFile()
#4 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(377): Incenteev\ParameterHandler\ScriptHandler::buildParameters()
#5 phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(236): Composer\EventDispatcher\EventDispatcher->executeEventPhpScript()
#6 phar:///usr/local/bin/composer/src/ in /var/www/project/symfony/vendor/symfony/yaml/Inline.php on line 214

How to reproduce

Use Incenteev\ParameterHandler\ScriptHandler::buildParameters in composer post-install-cmd

Possible Solution

Remove usages of array_is_list?

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0