Skip to content

Commit

Permalink
Merge pull request #17 from kai890707/Fixed_serviceDataHandlerCallback
Browse files Browse the repository at this point in the history
Modified : serviceDataHandlerCallback append args.
  • Loading branch information
monkenWu authored Sep 17, 2023
2 parents 69708de + 460dd8b commit 8ceadf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/ServiceList.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static function getServiceData(string $serviceName): ?ServiceSettings
return null;
}
} else {
$callableResult = call_user_func(static::$serviceDataHandlerCallback);
$callableResult = call_user_func(static::$serviceDataHandlerCallback, $serviceName);
if (!$callableResult instanceof ServiceSettings) {
throw ActionException::forServiceDataCallbackTypeError($serviceName);
}
Expand Down

0 comments on commit 8ceadf0

Please sign in to comment.