|
9 | 9 | /** |
10 | 10 | * @internal Immutable value object representing a single type contract violation. |
11 | 11 | */ |
12 | | -final readonly class ViolationRecord implements JsonSerializable |
| 12 | +final class ViolationRecord implements JsonSerializable |
13 | 13 | { |
14 | 14 | /** |
15 | 15 | * @param 'parameter'|'return'|'property'|'variable'|'param-out'|'self-out'|'callback'|'yield'|'send' $kind |
16 | 16 | */ |
17 | 17 | public function __construct( |
18 | | - public string $file, |
19 | | - public int $line, |
20 | | - public string $function, |
21 | | - public string $kind, |
22 | | - public string $target, |
23 | | - public string $expected, |
24 | | - public string $given, |
25 | | - public string $message, |
26 | | - public int $count = 1, |
27 | | - public ?string $caller = null, |
28 | | - public ?string $declaredIn = null |
| 18 | + public readonly string $file, |
| 19 | + public readonly int $line, |
| 20 | + public readonly string $function, |
| 21 | + public readonly string $kind, |
| 22 | + public readonly string $target, |
| 23 | + public readonly string $expected, |
| 24 | + public readonly string $given, |
| 25 | + public readonly string $message, |
| 26 | + public readonly int $count = 1, |
| 27 | + public readonly ?string $caller = null, |
| 28 | + public readonly ?string $declaredIn = null |
29 | 29 | ) { |
30 | 30 | } |
31 | 31 |
|
|
0 commit comments