Skip to content

Quote inconsistency between env vars in phpunit.xml.dist and .env #317

@weaverryan

Description

@weaverryan

symfony/recipes#361 created an interesting issue :).

After this change, .env looked like this:

DATABASE_URL='mysql://root:@127.0.0.1:3306/test_maker'

(it used double quotes before). BUT, this broke phpunit.xml.dist, which now looks like this:

<env name="DATABASE_URL" value="'mysql://root:@127.0.0.1:3306/test_maker'"/>

The extra single quotes become part of the value.

I'm proposing that we revert symfony/recipes#361 in symfony/recipes#363.

I'm not sure how to fix this. Sometimes, you do want double-quotes - so you can have \n and other things. But many times, we want the user to have single quotes. Perhaps we should always use single quotes in the recipes? And the user can change to double if they want? I could open a PR - I just wasn't sure at first.

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