Skip to content

Commit 32a29ca

Browse files
authored
Merge pull request #25 from Jeckel-Lab/feature/upgrade-exceptions
Update to stable contract version
2 parents 0539dc5 + ec2aea3 commit 32a29ca

File tree

5 files changed

+4
-39
lines changed

5 files changed

+4
-39
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"php": "^7.2",
2424
"psr/event-dispatcher": "^1.0",
2525
"psr/container": "^1.0",
26-
"jeckel-lab/contract": "0.1"
26+
"jeckel-lab/contract": ">=0.1.2"
2727
},
2828
"require-dev": {
2929
"phpunit/phpunit": "^8.4",

src/CommandHandler/CommandHandlerAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
namespace JeckelLab\CommandDispatcher\CommandHandler;
1111

12-
use JeckelLab\CommandDispatcher\Exception\InvalidCommandException;
1312
use JeckelLab\Contract\Core\CommandDispatcher\Command\Command;
1413
use JeckelLab\Contract\Core\CommandDispatcher\CommandHandler\CommandHandler;
1514
use JeckelLab\Contract\Core\CommandDispatcher\CommandResponse\CommandResponse;
15+
use JeckelLab\Contract\Core\CommandDispatcher\Exception\InvalidCommandException;
1616

1717
/**
1818
* Class CommandHandlerAbstract

src/Exception/CommandDispatcherException.php

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

src/Exception/InvalidCommandException.php

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

src/Resolver/HandlerNotFoundException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77

88
namespace JeckelLab\CommandDispatcher\Resolver;
99

10-
use RuntimeException;
10+
use JeckelLab\Contract\Core\Exception\RuntimeException;
1111

1212
/**
1313
* Class HandlerNotFoundException
1414
* @package JeckelLab\CommandDispatcher\Resolver
15+
* @psalm-immutable
1516
*/
1617
class HandlerNotFoundException extends RuntimeException
1718
{

0 commit comments

Comments
 (0)