Skip to content

Commit c45ea22

Browse files
committed
PHP 8.2 Compat - deprecated dynamic properties
Signed-off-by: George Steel <[email protected]>
1 parent 5c47d9c commit c45ea22

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

test/Exception/ProblemDetailsExceptionInterfaceTest.php

+7-10
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,17 @@
1212
use function json_decode;
1313
use function json_encode;
1414

15-
class ProblemDetailsExceptionInterfaceTest extends TestCase
15+
final class ProblemDetailsExceptionInterfaceTest extends TestCase
1616
{
17-
/** @var int */
18-
protected $status = 403;
19-
/** @var string */
20-
protected $detail = 'You are not authorized to do that';
21-
/** @var string */
22-
protected $title = 'Unauthorized';
23-
/** @var string */
24-
protected $type = 'https://httpstatus.es/403';
17+
private int $status = 403;
18+
private string $detail = 'You are not authorized to do that';
19+
private string $title = 'Unauthorized';
20+
private string $type = 'https://httpstatus.es/403';
2521
/** @var string[] */
26-
protected $additional = [
22+
private array $additional = [
2723
'foo' => 'bar',
2824
];
25+
private ProblemDetailsExceptionInterface $exception;
2926

3027
protected function setUp(): void
3128
{

0 commit comments

Comments
 (0)