Skip to content

Commit

Permalink
Clean up and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-b committed Feb 4, 2022
1 parent 0081e69 commit 4966316
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
vendor/
tools/vendor
.php-cs-fixer.cache
.phpunit.result.cache
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"php",
"command-bus"
],
"version": "1.3.1",
"version": "1.3.2",
"license": "MIT",
"authors": [
{
Expand Down
10 changes: 3 additions & 7 deletions src/Response/Concerns/CanDelegate.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@

use SasaB\CommandBus\Exceptions\ImmutableException;

/**
* @template TT
* @mixin TT
*/
trait CanDelegate
{
public function __get(string $name)
public function __get(string $name): mixed
{
return $this->content->{$name} ?? null;
}
Expand All @@ -31,12 +27,12 @@ public function __isset(string $name): bool
/**
* @throws ImmutableException
*/
public function __set(string $property, mixed $value)
public function __set(string $property, mixed $value): void
{
throw ImmutableException::mutating(__CLASS__);
}

public function __call(string $name, array $arguments)
public function __call(string $name, array $arguments): mixed
{
return $this->content->{$name}(...$arguments);
}
Expand Down
5 changes: 0 additions & 5 deletions tests/TestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
*/
final class TestHandler implements Handler
{
/**
* @template T
* @param Command<T> $command
* @return mixed
*/
public function handle(Command $command): mixed
{
return $command->payload();
Expand Down

0 comments on commit 4966316

Please sign in to comment.