force readonly properties on dummy class used in test

This commit is contained in:
2023-07-28 01:33:00 +02:00
parent 0ed5544ad3
commit b6a094aeee

View File

@@ -533,8 +533,8 @@ final class ExportManagerTest extends KernelTestCase
class DummyFilterWithApplying implements FilterInterface class DummyFilterWithApplying implements FilterInterface
{ {
public function __construct( public function __construct(
private ?string $role, private readonly ?string $role,
private string $applyOn private readonly string $applyOn
) { ) {
} }
@@ -569,11 +569,11 @@ class DummyFilterWithApplying implements FilterInterface
class DummyExport implements ExportInterface class DummyExport implements ExportInterface
{ {
public function __construct( public function __construct(
private string $role, private readonly string $role,
/** /**
* @var array<string> * @var array<string>
*/ */
private array $supportedModifiers, private readonly array $supportedModifiers,
) { ) {
} }