Skip to content

Commit 3913e4e

Browse files
Fix duplicate
1 parent dff24fd commit 3913e4e

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

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

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,6 @@ final class FinalClass
4444
{
4545
}
4646

47-
interface ThrowsVoidInterface
48-
{
49-
/** @throws void */
50-
public function __construct();
51-
}
52-
53-
abstract class AbstractThrowsVoid
54-
{
55-
/** @throws void */
56-
public function __construct()
57-
{
58-
}
59-
}
60-
6147
/** @param class-string<FooInterface> $class */
6248
function interfaceWithoutConstructor(string $class): void
6349
{
@@ -129,21 +115,3 @@ function finalClassWithoutConstructor(string $class): void
129115
} catch (\Exception $e) { // dead catch - final class with no constructor
130116
}
131117
}
132-
133-
/** @param class-string<ThrowsVoidInterface> $class */
134-
function interfaceWithThrowsVoidConstructor(string $class): void
135-
{
136-
try {
137-
new $class();
138-
} catch (\Exception $e) { // dead catch - constructor is @throws void
139-
}
140-
}
141-
142-
/** @param class-string<AbstractThrowsVoid> $class */
143-
function abstractClassWithThrowsVoidConstructor(string $class): void
144-
{
145-
try {
146-
new $class();
147-
} catch (\Exception $e) { // dead catch - constructor is @throws void
148-
}
149-
}

0 commit comments

Comments
 (0)