Skip to content

Commit

Permalink
fix: return if not exists handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Яценко Андрей committed May 20, 2021
1 parent 119a4db commit 214805b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yzen.dev/mono-processor",
"version": "1.0.3",
"version": "1.0.4",
"description": "This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.",
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/EventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ public function __call(string $method, array $arguments): void
{
$handlerMethod = $handlerMethod = "{$method}Handler";
if (!method_exists($this, $handlerMethod)) {
return;
//throw new RuntimeException("Missing event handler: {$handlerMethod}");
}

Expand Down

0 comments on commit 214805b

Please sign in to comment.