Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Remove usage of Kernel::VERSION#64102

Merged
nicolas-grekas merged 1 commit into
symfony:7.4symfony/symfony:7.4from
fabpot:symfony-versionfabpot/symfony:symfony-versionCopy head branch name to clipboard
May 28, 2026
Merged

Remove usage of Kernel::VERSION#64102
nicolas-grekas merged 1 commit into
symfony:7.4symfony/symfony:7.4from
fabpot:symfony-versionfabpot/symfony:symfony-versionCopy head branch name to clipboard

Conversation

@fabpot
Copy link
Copy Markdown
Member

@fabpot fabpot commented May 2, 2026

Q A
Branch? 7.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #64382
License MIT

I'd like to deprecate Kernel::VERSION but keep all other version related constants in Kernel.

The problem with Kernel::VERSION is that it changes for every patch release, which means that symfony/http-kernel is always released even when the component itself has no significant changes.

Using Composer directly seems like the better way here.

@fabpot fabpot requested a review from yceruto as a code owner May 2, 2026 07:41
@carsonbot carsonbot added this to the 6.4 milestone May 2, 2026
@carsonbot carsonbot changed the title Remove usage of Kernel::VERSION Remove usage of Kernel::VERSION May 2, 2026
Comment thread src/Symfony/Bundle/TwigBundle/Tests/Functional/EmptyAppTest.php
Comment thread src/Symfony/Component/HttpKernel/EventListener/RouterListener.php Outdated
Comment thread src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php Outdated
Copy link
Copy Markdown
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

InstalledVersions::getPrettyVersion() may return null if the package is not installed.
The returned version is prefixed by v: v6.4.37 (because the tags have this prefix).

Comment thread src/Symfony/Bundle/FrameworkBundle/Command/AboutCommand.php Outdated
Comment thread src/Symfony/Bundle/FrameworkBundle/Console/Application.php Outdated
Comment thread src/Symfony/Component/HttpKernel/DataCollector/ConfigDataCollector.php Outdated
Comment thread src/Symfony/Component/Runtime/Runner/Symfony/HttpKernelRunner.php Outdated
@OskarStark OskarStark changed the title Remove usage of Kernel::VERSION Remove usage of Kernel::VERSION May 3, 2026
@Kocal
Copy link
Copy Markdown
Member

Kocal commented May 4, 2026

Symfony UX won't be impacted. What about AI cc @OskarStark @chr-hertel?

@OskarStark
Copy link
Copy Markdown
Contributor

AFAICS we don't rely on this const either

@derrabus
Copy link
Copy Markdown
Member

derrabus commented May 4, 2026

Should we do this change on 8.1 instead? We cannot safely remove the constant on the LTS branch anyway.

@GromNaN
Copy link
Copy Markdown
Member

GromNaN commented May 4, 2026

Should we do this change on 8.1 instead? We cannot safely remove the constant on the LTS branch anyway.

This PR does not remove the constant. It removes usages of this constant, so that we can safely deprecate the constant in 8.1.

@derrabus
Copy link
Copy Markdown
Member

derrabus commented May 4, 2026

This PR does not remove the constant.

I am aware.

It removes usages of this constant, so that we can safely deprecate the constant in 8.1.

Yes, but the PR changes components that cannot be installed together with http-kernel 8.1, e.g. framework-bundle 6.4. Touching the old LTS feels pointless.

Comment thread src/Symfony/Component/HttpKernel/EventListener/RouterListener.php Outdated
@fabpot
Copy link
Copy Markdown
Member Author

fabpot commented May 6, 2026

Not urgent anymore as I've tweaked the release process to always tag symfony/http-kernel thanks to using data #xxxx. And maybe for 8.1.

image

@nicolas-grekas
Copy link
Copy Markdown
Member

Thank you @fabpot.

@nicolas-grekas nicolas-grekas merged commit cf1b275 into symfony:7.4 May 28, 2026
8 of 15 checks passed
@fabpot fabpot mentioned this pull request May 29, 2026
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.

9 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.