Closed
Description
Symfony version(s) affected
6.0.0
Description
Error in profiler https://127.0.0.1:8000/_wdt/7899b7 with php 8.1
Typed property Symfony\Component\HttpKernel\Debug\FileLinkFormatter::$requestStack must not be accessed before initialization
How to reproduce
PHP 8.1
symfony php -v
PHP 8.1.0 (cli) (built: Nov 28 2021 14:43:54) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.0, Copyright (c) Zend Technologies
with Zend OPcache v8.1.0, Copyright (c), by Zend Technologies
Runing with symfony serve Symfony CLI version v4.26.11 (c) 2017-2021 Symfony SAS
"symfony/debug-bundle": "6.0.*",
{
"name": "symfony/debug-bundle",
"version": "v6.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/debug-bundle.git",
"reference": "53210ba5a9013db4337f56ad5d3c5af89d92575a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/debug-bundle/zipball/53210ba5a9013db4337f56ad5d3c5af89d92575a",
"reference": "53210ba5a9013db4337f56ad5d3c5af89d92575a",
"shasum": ""
},
"require": {
"ext-xml": "*",
"php": ">=8.0.2",
"symfony/http-kernel": "^5.4|^6.0",
"symfony/twig-bridge": "^5.4|^6.0",
"symfony/var-dumper": "^5.4|^6.0"
},
"conflict": {
"symfony/config": "<5.4",
"symfony/dependency-injection": "<5.4"
},
"require-dev": {
"symfony/config": "^5.4|^6.0",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/web-profiler-bundle": "^5.4|^6.0"
},
"suggest": {
"symfony/config": "For service container configuration",
"symfony/dependency-injection": "For using as a service from the container"
},
"type": "symfony-bundle",
"autoload": {
"psr-4": {
"Symfony\\Bundle\\DebugBundle\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Provides a tight integration of the Symfony Debug component into the Symfony full-stack framework",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/debug-bundle/tree/v6.0.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-09-30T15:28:07+00:00"
},
Possible Solution
I've untiyped
private ?RequestStack $requestStack;
In FileLinkFormatter and it rework
Additional Context
No response