Skip to content

Commit

Permalink
Merge pull request smartemailing#24 from smartemailing/remove-paramet…
Browse files Browse the repository at this point in the history
…er-exception

InvalidTypeException extends from native RuntimeException

💪 @slischka
  • Loading branch information
mstrouhal authored Sep 14, 2018
2 parents e4b9bf0 + e6286ab commit 0f725ba
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 41 deletions.
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
"SmartEmailing\\Types\\": [
"src"
]
},
"classmap": [
"src/deprecated/"
]
}
},
"autoload-dev": {
"psr-4": {
Expand Down
4 changes: 1 addition & 3 deletions src/InvalidTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

namespace SmartEmailing\Types;

use SmartSelling\Parameters\InvalidParameterException;

class InvalidTypeException extends InvalidParameterException
class InvalidTypeException extends \RuntimeException
{

public function wrap(
Expand Down
31 changes: 0 additions & 31 deletions src/deprecated/InvalidParameterException.php

This file was deleted.

4 changes: 1 addition & 3 deletions tools/phpstan/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ parameters:
autoload_directories:
- ../../src
- ../../tests
autoload_files:
- ../../src/deprecated/InvalidParameterException.php
excludes_analyse:
ignoreErrors:
- '#Call to function is_string\(\) will always evaluate to false#'
includes:
- ../../vendor/phpstan/phpstan-nette/extension.neon
- ../../vendor/phpstan/phpstan-nette/rules.neon
- ../../vendor/phpstan/phpstan-nette/rules.neon

0 comments on commit 0f725ba

Please sign in to comment.