Skip to content

Commit 0196be5

Browse files
committed
[FrameworkBundle] fix lint:container command
1 parent 6e2fcec commit 0196be5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/ContainerLintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private function getContainerBuilder(): ContainerBuilder
8080

8181
$kernel = $this->getApplication()->getKernel();
8282
$container = $kernel->getContainer();
83-
$file = $container->isDebug() ? $container->getParameter('debug.container.dump') : false;
83+
$file = $kernel->isDebug() ? $container->getParameter('debug.container.dump') : false;
8484

8585
if (!$file || !(new ConfigCache($file, true))->isFresh()) {
8686
if (!$kernel instanceof Kernel) {

src/Symfony/Component/DependencyInjection/Alias.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ class Alias
1717
{
1818
private const DEFAULT_DEPRECATION_TEMPLATE = 'The "%alias_id%" service alias is deprecated. You should stop using it, as it will be removed in the future.';
1919

20+
private bool $public = false;
2021
private array $deprecation = [];
2122

2223
public function __construct(
2324
private string $id,
24-
private bool $public = false,
25+
bool $public = false,
2526
) {
27+
$this->public = $public;
2628
}
2729

2830
/**

0 commit comments

Comments
 (0)