-
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
46 additions
and
65 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...aration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/exception.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
use Rector\Core\Exception\ShouldNotHappenException; | ||
|
||
final class SkipException | ||
{ | ||
public function getValues() | ||
{ | ||
throw new ShouldNotHappenException(); | ||
} | ||
} | ||
----- | ||
<?php | ||
|
||
use Rector\Core\Exception\ShouldNotHappenException; | ||
|
||
final class SkipException | ||
{ | ||
public function getValues(): void | ||
{ | ||
throw new ShouldNotHappenException(); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...tion/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/never_method.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector\Fixture; | ||
|
||
final class ExitMethod | ||
{ | ||
protected function getValues() | ||
{ | ||
exit(); | ||
} | ||
} | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector\Fixture; | ||
|
||
final class ExitMethod | ||
{ | ||
protected function getValues(): void | ||
{ | ||
exit(); | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
...on/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/skip_exception.php.inc
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/skip_never_method.php.inc
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
.../ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/skip_throws_only_method.php.inc
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters