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

Symfony 6 support #12

Merged
merged 3 commits into from Nov 10, 2021
Merged

Symfony 6 support #12

merged 3 commits into from Nov 10, 2021

Conversation

sidz
Copy link
Member

@sidz sidz commented Nov 6, 2021

  • Add Symfony 6 support
  • Mark 4.4 as minimum supported version
  • Test adapter against supported versions of symfony packages

@sidz sidz force-pushed the support-symfony-6 branch 2 times, most recently from cdf0d32 to e5e2804 Compare November 7, 2021 20:42
PHP_CS_FIXER_ARGS=--diff --diff-format=udiff --verbose
export PHP_CS_FIXER_IGNORE_ENV=1
PHP_CS_FIXER=./.tools/php-cs-fixer
PHP_CS_FIXER_URL="https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.2.1/php-cs-fixer.phar"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

php-cs-fixer is not compatible with symfony 6 yet.

waiting PHP-CS-Fixer/PHP-CS-Fixer#6095 to be merged and new release

@sidz sidz force-pushed the support-symfony-6 branch 2 times, most recently from 3b1ddc0 to 2c5e282 Compare November 7, 2021 20:48
;

return Config::create()
return (new Config())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config has been copied from infection/infection repo

/**
* @internal
*/
final class PhpSpecExtraOptions
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like dead code. Am I missed smth?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, looks like unused

php-version: ['7.4', '8.0', '8.1']
coverage-driver: [pcov]
symfony-require: ['^4', '^5', '^6']
exclude:
- symfony-require: "^6"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

symfony 6 requires "php": ">=8.0.2"

@sidz sidz marked this pull request as ready for review November 7, 2021 20:54
@@ -13,14 +13,19 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-require }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it somehow used by composer to require symfony of particular version during composer update? As I don't see where we explicitly require the needed version (^5, ^6 ...)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sidz sidz merged commit 7e0a6ba into master Nov 10, 2021
@sidz sidz deleted the support-symfony-6 branch November 10, 2021 07:26
@sidz
Copy link
Member Author

sidz commented Nov 10, 2021

merged. Thanks @maks-rafalko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants