deprecated-packages / symplify

[DISCONTINUED] Check split packages in their own repositories :)
MIT License
618 stars 188 forks source link

Class "default" not found bug #4564

Closed adrav closed 1 year ago

adrav commented 1 year ago

How to reproduce:

create yml file with the following content:

parameters:
    some_parameter: '%env(default::MY_PARAMETER)%'

According to the Symfony documentation: "When the fallback parameter is omitted (e.g. env(default::API_KEY)), then the returned value is null." https://symfony.com/doc/current/configuration/env_var_processors.html

But I got:

src/MyBundle/Resources/config/services.yml
 * Class "default" not found

I think bug is in the following regex: private const STATIC_CALL_CLASS_REGEX = '#(?<quote>["\']?)[\\\\]*(?<class_name>[A-Za-z][\\w\\\\]+)::#'; in file: Symplify\EasyCI\Config\ClassExtractor

https://regex101.com/r/gjZUkS/1

TomasVotruba commented 1 year ago

Hi, this repository is actually empty now :) What exact package do you use?

adrav commented 1 year ago

I use: symplify/easy-ci 11.2.0.72 https://github.com/symplify/easy-ci

I posted this bug here, because of the "Report Issues" section on https://github.com/symplify/easy-ci

TomasVotruba commented 1 year ago

I see. I've fixed it now, you can report issue there

adrav commented 1 year ago

https://github.com/symplify/easy-ci/issues/6