Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DependencyInjection] Define default priority inside service class #31943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
fixed arguments order
Co-Authored-By: Kevin Verschaeve <[email protected]>
  • Loading branch information
pcabreus and kevin-verschaeve authored Jun 12, 2019
commit 6b51ac50c8aa3d987d3da751e7b6989c15ed821b
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private function findAndSortTaggedServices($tagName, ContainerBuilder $container
$priority = $priorityReflMethod->invoke(null);

if (!\is_int($priority)) {
throw new InvalidArgumentException(sprintf('Default priority method "%s::%s()" of the "%s"-tagged collection on service "%s" should return an integer, got %s.', $class, $defaultPriorityMethod, \gettype($priority), $tagName, $serviceId));
throw new InvalidArgumentException(sprintf('Default priority method "%s::%s()" of the "%s"-tagged collection on service "%s" should return an integer, got %s.', $class, $defaultPriorityMethod, $tagName, $serviceId, \gettype($priority)));
}
}

Expand Down