Skip to content

Commit 34e979b

Browse files
Simplify
1 parent af6d594 commit 34e979b

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/PHPStan/Rules/Exceptions/data/bug-11900.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,6 @@
77

88
abstract class ADataException extends Exception
99
{
10-
public int $i {
11-
/** @throws static */
12-
get {
13-
if (rand(0, 1)) {
14-
throw new static();
15-
}
16-
17-
return 42;
18-
}
19-
}
20-
21-
/** @throws static */
22-
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
23-
{
24-
if (rand(0, 1)) {
25-
throw new static();
26-
}
27-
28-
parent::__construct($message, $code, $previous);
29-
}
30-
3110
/**
3211
* @return void
3312
* @throws static

0 commit comments

Comments
 (0)