Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Sep 8, 2023
1 parent 4241667 commit 86f0a87
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,9 @@ public function testBug9619(): void
]);
}

public function testBug9864(): void
{
$this->analyse([__DIR__ . '/data/bug-9864.php'], []);
}

}
25 changes: 25 additions & 0 deletions tests/PHPStan/Rules/Properties/data/bug-9864.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php // lint >= 8.1

namespace Bug9864;

abstract class UuidValueObject
{
public function __construct(public readonly string $value)
{
}
}

final class ProductId extends UuidValueObject
{
public readonly string $value;

public function __construct(string $value)
{
parent::__construct($value);
}
}

final class ProductId2
{
public readonly string $value;
}

0 comments on commit 86f0a87

Please sign in to comment.