Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem when SYMFONY_PHPUNIT_VERSION is empty string value #39858

Merged
merged 1 commit into from Jan 18, 2021

Conversation

alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Jan 16, 2021

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations?
Tickets Fix #...
License MIT
Doc PR symfony/symfony-docs#...

This should fix that when SYMFONY_PHPUNIT_VERSION is set again on empty:

SYMFONY_PHPUNIT_VERSION= vendor/bin/simple-phpunit

it does not error with:

Creating a "phpunit/phpunit" project at "./phpunit--1"


  [UnexpectedValueException]
  Could not parse version constraint .*: Invalid version string ".*"

@carsonbot
Copy link

@carsonbot carsonbot commented Jan 17, 2021

Hey!

I did a quick review of this PR, I think most things looks good.

I think @ro0NL has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

Copy link
Contributor

@ro0NL ro0NL left a comment

we can argue about unset SYMFONY_PHPUNIT_VERSION i guess

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php Outdated Show resolved Hide resolved
@alexander-schranz
Copy link
Contributor Author

@alexander-schranz alexander-schranz commented Jan 18, 2021

The change requests by the fabbot are not related to the changes in this PR and not possible for the simple-phpunit script as I think we support here a lower php version.

xabbuh
xabbuh approved these changes Jan 18, 2021
fabpot
fabpot approved these changes Jan 18, 2021
@fabpot
Copy link
Member

@fabpot fabpot commented Jan 18, 2021

Thank you @alexander-schranz.

@fabpot fabpot merged commit 6af4446 into symfony:4.4 Jan 18, 2021
3 of 6 checks passed
@alexander-schranz alexander-schranz deleted the patch-9 branch Jan 18, 2021
This was referenced Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants