Skip to content

Commit

Permalink
Merge pull request #82 from AmraniCh/master
Browse files Browse the repository at this point in the history
Switch to more semantic exception classes
  • Loading branch information
lyrixx committed Dec 22, 2022
2 parents 5b1abc0 + b4d058f commit 963b2b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/JoliTypo/Exception/BadFixerConfigurationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace JoliTypo\Exception;

class BadFixerConfigurationException extends \Exception
class BadFixerConfigurationException extends \InvalidArgumentException
{
protected $message = 'Fixer needs configuration.';
}
2 changes: 1 addition & 1 deletion src/JoliTypo/Exception/BadRuleSetException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace JoliTypo\Exception;

class BadRuleSetException extends \Exception
class BadRuleSetException extends \InvalidArgumentException
{
protected $message = 'RuleSet must be an array of Fixer names or instances.';
}

0 comments on commit 963b2b7

Please sign in to comment.