<?php declare(strict_types = 1); class HelloWorld { public function __construct(private readonly string $secret, private readonly string $notSecret) { throw new \Exception('a'); } } class Bar extends HelloWorld { public function __construct(#[\SensitiveParameter] string $secret, string $notSecret) { parent::__construct($secret, $notSecret); } } echo serialize(new Bar('foo', 'bar')) . PHP_EOL;
You have javascript disabled. You will not be able to edit any code.