Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate exceptions #24

Merged
merged 1 commit into from
Sep 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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