Unverified Commit 6e7cd2e5 authored by larowlan's avatar larowlan
Browse files

Issue #3231669 by daffie: [Symfony 6] Add "Alias" type hint to...

Issue #3231669 by daffie: [Symfony 6] Add "Alias" type hint to Drupal\Core\DependencyInjection\ContainerBuilder::setAlias()
parent 5f608fa5
......@@ -5,6 +5,7 @@
namespace Drupal\Core\DependencyInjection;
use Symfony\Component\DependencyInjection\Alias;
use Symfony\Component\DependencyInjection\ContainerBuilder as SymfonyContainerBuilder;
use Symfony\Component\DependencyInjection\Container as SymfonyContainer;
use Symfony\Component\DependencyInjection\Definition;
......@@ -100,7 +101,7 @@ public function register($id, $class = null): Definition {
/**
* {@inheritdoc}
*/
public function setAlias($alias, $id) {
public function setAlias($alias, $id): Alias {
$alias = parent::setAlias($alias, $id);
// As of Symfony 3.4 all aliases are private by default.
$alias->setPublic(TRUE);
......
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