Unverified Commit 5f608fa5 authored by larowlan's avatar larowlan
Browse files

Issue #3231668 by daffie, catch: [Symfony 6] Add "Definition" type hint to...

Issue #3231668 by daffie, catch: [Symfony 6] Add "Definition" type hint to Drupal\Core\DependencyInjection\ContainerBuilder::register()
parent d79e4a65
......@@ -86,7 +86,7 @@ public function set($id, $service) {
/**
* {@inheritdoc}
*/
public function register($id, $class = null) {
public function register($id, $class = null): Definition {
if (strtolower($id) !== $id) {
throw new \InvalidArgumentException("Service ID names must be lowercase: $id");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment