Unverified Commit da0ae6a9 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

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

Issue #3231672 by daffie: [Symfony 6] Add "Definition" type hint to Drupal\Core\DependencyInjection\ContainerBuilder::setDefinition()
parent 6e7cd2e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ public function setAlias($alias, $id): Alias {
  /**
   * {@inheritdoc}
   */
  public function setDefinition($id, Definition $definition) {
  public function setDefinition($id, Definition $definition): Definition {
    $definition = parent::setDefinition($id, $definition);
    // As of Symfony 3.4 all definitions are private by default.
    // \Symfony\Component\DependencyInjection\Compiler\ResolvePrivatesPassOnly