Skip to content

Conversation

@derrabus
Copy link
Member

Q A
Type bug
Fixed issues N/A

Summary

This PR fixes all current compatibility issues with Symfony 8.

@derrabus derrabus added this to the 3.9.6 milestone Jun 18, 2025
@derrabus derrabus changed the title Fix Symyfony 8 compatibility issues Fix Symfony 8 compatibility issues Jun 18, 2025
use Symfony\Component\Console\Output\OutputInterface;

if ((new ReflectionMethod(Command::class, 'execute'))->hasReturnType()) {
// Symfony 8
Copy link
Member

Choose a reason for hiding this comment

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

Per composer.json, Symfony 8 isn't supported:

"symfony/console": "^5.4|^6.3|^7.0"

Should it be updated?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not yet, Symfony 8 is still a moving target until November.

{
protected function configure(): void
{
$this->doConfigure();
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to add a CI job to get this branch covered?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that's probably a good idea. I'll do it.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've changed our existing dev dependencies workflow. It now runs on PHP 8.4 and with Symfony 8 libraries.

@derrabus derrabus changed the base branch from 3.9.x to 3.10.x July 10, 2025 20:58
@derrabus derrabus removed this from the 3.9.6 milestone Jul 10, 2025
@derrabus derrabus marked this pull request as draft July 10, 2025 20:58
@derrabus derrabus force-pushed the bugfix/symfony-8-compat branch 2 times, most recently from e94e95f to 6aa049c Compare July 21, 2025 22:22
@derrabus derrabus force-pushed the bugfix/symfony-8-compat branch from 6aa049c to 5649126 Compare July 21, 2025 22:24
@derrabus derrabus marked this pull request as ready for review July 21, 2025 22:24
@derrabus derrabus merged commit 2022f9e into doctrine:3.10.x Jul 22, 2025
59 checks passed
@derrabus derrabus deleted the bugfix/symfony-8-compat branch July 22, 2025 00:15
derrabus added a commit to derrabus/dbal that referenced this pull request Jul 26, 2025
* 3.10.x:
  Fix Symfony 8 compatibility issues (doctrine#7009)
derrabus added a commit that referenced this pull request Jul 26, 2025
* 4.3.x:
  feat: add more pdo jobs with stringify fetches (#7052)
  Fix case sensitivity in SQLite column types (#7050)
  Fix length type in `MySQLSchemaManager` with `ATTR_STRINGIFY_FETCHES` enabled (#7028)
  Fix Symfony 8 compatibility issues (#7009)
  Quote MySQL constraint names for foreign keys
derrabus added a commit to derrabus/dbal that referenced this pull request Jul 26, 2025
* 4.4.x:
  Document the JSON_OBJECT type (doctrine#7054)
  [RFC] Introduce Types::JSON_OBJECT (doctrine#7053)
  feat: add more pdo jobs with stringify fetches (doctrine#7052)
  Fix case sensitivity in SQLite column types (doctrine#7050)
  Fix length type in `MySQLSchemaManager` with `ATTR_STRINGIFY_FETCHES` enabled (doctrine#7028)
  Fix Symfony 8 compatibility issues (doctrine#7009)
  Quote MySQL constraint names for foreign keys
morozov pushed a commit to morozov/dbal that referenced this pull request Jul 27, 2025
* 4.4.x:
  Document the JSON_OBJECT type (doctrine#7054)
  [RFC] Introduce Types::JSON_OBJECT (doctrine#7053)
  feat: add more pdo jobs with stringify fetches (doctrine#7052)
  Fix case sensitivity in SQLite column types (doctrine#7050)
  Fix length type in `MySQLSchemaManager` with `ATTR_STRINGIFY_FETCHES` enabled (doctrine#7028)
  Fix Symfony 8 compatibility issues (doctrine#7009)
  Quote MySQL constraint names for foreign keys
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.

2 participants