Skip to content

Commit

Permalink
Merge pull request #24 from Soullivaneuh/exception-deprecate
Browse files Browse the repository at this point in the history
Deprecate exceptions
  • Loading branch information
soullivaneuh committed Sep 29, 2015
2 parents 92b659d + e732f1d commit 188c229
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Exception/AbstractConfigException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

namespace SLLH\StyleCIBridge\Exception;

@trigger_error(__CLASS__.' is deprecated since version 1.3 and will be removed in 2.0.', E_USER_DEPRECATED);

/**
* @author Sullivan Senechal <soullivaneuh@gmail.com>
*
* @deprecated since 1.3, will be removed in 2.0
*/
abstract class AbstractConfigException extends \RuntimeException
{
}
4 changes: 4 additions & 0 deletions src/Exception/FixersConfigException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

namespace SLLH\StyleCIBridge\Exception;

@trigger_error(__CLASS__.' is deprecated since version 1.3 and will be removed in 2.0.', E_USER_DEPRECATED);

/**
* Exception for fixers config.
*
* @author Sullivan Senechal <soullivaneuh@gmail.com>
*
* @deprecated since 1.3, will be removed in 2.0
*/
class FixersConfigException extends AbstractConfigException
{
Expand Down
2 changes: 2 additions & 0 deletions src/Exception/LevelConfigException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace SLLH\StyleCIBridge\Exception;

@trigger_error(__CLASS__.' is deprecated since version 1.1 and will be removed in 2.0.', E_USER_DEPRECATED);

/**
* Exception for level/preset parsing.
*
Expand Down
4 changes: 4 additions & 0 deletions src/Exception/PresetConfigException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

namespace SLLH\StyleCIBridge\Exception;

@trigger_error(__CLASS__.' is deprecated since version 1.3 and will be removed in 2.0.', E_USER_DEPRECATED);

/**
* Exception for preset config.
*
* @author Sullivan Senechal <soullivaneuh@gmail.com>
*
* @deprecated since 1.3, will be removed in 2.0
*/
class PresetConfigException extends AbstractConfigException
{
Expand Down

0 comments on commit 188c229

Please sign in to comment.