Skip to content

Add support for Symfony 8#1125

Merged
dantleech merged 1 commit intophpbench:masterfrom
Kocal:symfony-8
Nov 5, 2025
Merged

Add support for Symfony 8#1125
dantleech merged 1 commit intophpbench:masterfrom
Kocal:symfony-8

Conversation

@Kocal
Copy link
Contributor

@Kocal Kocal commented Nov 4, 2025

No description provided.

if: matrix.composer-minimum-stability
run: composer config minimum-stability ${{ matrix.composer-minimum-stability }}

- name: Install Symfony Flex
Copy link
Member

Choose a reason for hiding this comment

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

why Symfony Flex?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Symfony Flex allows to install a specific version of Symfony, see https://symfony.com/doc/current/bundles/best_practices.html#require-a-specific-symfony-version

Copy link
Member

@dantleech dantleech Nov 4, 2025

Choose a reason for hiding this comment

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

if we're setting the minimum stability to dev wouldn't it already pull in SF 8?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hum indeed, I can remove these steps, but it means that PHPBench tests will always run on Symfony 6.1 (lowest) or Symfony 8 (highest)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, let's run the CI? :)

Copy link
Member

Choose a reason for hiding this comment

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

running 🙂

@dantleech
Copy link
Member

sorry, it failed due to a failing service which I've removed, could you rebase?

@Kocal
Copy link
Contributor Author

Kocal commented Nov 5, 2025

Sure! The PR has been rebased

@dantleech dantleech merged commit 66105e0 into phpbench:master Nov 5, 2025
12 checks passed
@dantleech
Copy link
Member

...although that was premature, looks like it did not install symfony 8

@Kocal
Copy link
Contributor Author

Kocal commented Nov 5, 2025

Hum yes, that's because of friendsofphp/php-cs-fixer dependency, I will change it to the shim version (it won't conflict with the dependencies graph)

@Kocal Kocal deleted the symfony-8 branch November 5, 2025 22:26
Kocal added a commit to Kocal/phpbench that referenced this pull request Nov 5, 2025
Kocal added a commit to Kocal/phpbench that referenced this pull request Nov 6, 2025
dantleech pushed a commit that referenced this pull request Nov 6, 2025
* Use php-cs-fixer/shim instead

Follows #1125

* Use Symfony Flex to fix Symfony versions

* Call Application::addCommand() if exist
maks-rafalko pushed a commit to infection/infection that referenced this pull request Nov 27, 2025
This PR increase version constraints on `symfony/*` packages to allow
Symfony 8, which will be released this month.

**EDIT:** opened phpbench/phpbench#1125
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.

3 participants