Skip to content

Commit 740ca0a

Browse files
Simplify
1 parent a5eb34f commit 740ca0a

File tree

3 files changed

+3
-51
lines changed

3 files changed

+3
-51
lines changed

src/Exception/ConfigurationException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
use function gettype;
1313
use function is_object;
1414
use function sprintf;
15-
use Exception;
15+
use InvalidArgumentException;
1616

17-
final class ConfigurationException extends InvalidArgumentException
17+
final class ConfigurationException extends InvalidArgumentException implements Exception
1818
{
19-
public function __construct(string $option, string $expected, mixed $value, int $code = 0, ?Exception $previous = null)
19+
public function __construct(string $option, string $expected, mixed $value, int $code = 0, ?\Exception $previous = null)
2020
{
2121
parent::__construct(
2222
sprintf(

src/Exception/InvalidArgumentException.php

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/Exception/InvalidArgumentExceptionTest.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)