Skip to content

PHP 8.4 Tracy does not show bluescreen with error: Deprecated: A::__construct(): Implicitly marking parameter $bar as nullable is deprecated, the explicit nullable type must be used instead  #589

@petrparolek

Description

@petrparolek

Version: 2.10.9
PHP version: 8.4.1

Bug Description

Tracy does not show bluescreen.

Steps To Reproduce

<?php

declare(strict_types = 1);

require __DIR__ . '/../vendor/autoload.php';

Tracy\Debugger::enable(\Tracy\Debugger::Development);

final class A
{

	private string $bar;

	public function __construct(string $bar = null) {
		$this->bar = $bar ?? 'foo';
	}

	public function getBar(): string
	{
		return $this->bar;
	}

}


$a = new A();
bdump($a->getBar());

Expected Behavior

show bluescreen with error: Deprecated: A::__construct(): Implicitly marking parameter $bar as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/www/tracy-test.php on line 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions