hassankhan / config

Config is a lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files
MIT License
971 stars 135 forks source link

Undefined class constant 'PARSE_CONSTANT' #117

Closed Zyles closed 5 years ago

Zyles commented 5 years ago

Ran a composer update and now my code is giving 500 error:

*125 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Undefined class constant 'PARSE_CONSTANT' in .../vendor/hassankhan/config/src/Parser/Yaml.php on line 30

PHP 7.0.31 "hassankhan/config": "*"

Zyles commented 5 years ago

I manually added symfony/yaml and it updated from 2.x to 3.x. Seems like composer didn't update the yaml parser version required?

DavidePastore commented 5 years ago

Hi @Zyles , symfony/yaml is not a required dependency but a suggested one. You can see it here and you can see the related notice here.