Skip to content

Commit f585209

Browse files
committed
fix
1 parent 5e49b21 commit f585209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/Fixture/skip_custom_exception_no_code_param.php.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Rector\Tests\CodeQuality\Rector\Catch_\ThrowWithPreviousExceptionRecto
44

55
use stdClass;
66

7-
class Error extends \Exception
7+
class CustomError extends \Exception
88
{
99
public function __construct(
1010
string $message = '',
@@ -23,5 +23,5 @@ class Error extends \Exception
2323
try {
2424
throw new \InvalidArgumentException('foo');
2525
} catch (\InvalidArgumentException $e) {
26-
throw new Error(message: 'Some error message', previous: $e);
26+
throw new CustomError(message: 'Some error message', previous: $e);
2727
}

0 commit comments

Comments
 (0)