File tree Expand file tree Collapse file tree
tests/PHPStan/Rules/Exceptions/data Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
6248function 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- }
You can’t perform that action at this time.
0 commit comments