Skip to content

Commit fe5f8bb

Browse files
authored
Merge pull request #11965 from greg0ire/partial-revert-10162
Revert to stdout for MappingDescribeCommand
2 parents dfe32c2 + ecf3cec commit fe5f8bb

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ public function isLazyGhostObjectEnabled(): bool
11091109

11101110
public function setLazyGhostObjectEnabled(bool $flag): void
11111111
{
1112+
// @phpstan-ignore classConstant.deprecatedTrait (Because we support Symfony < 7.3)
11121113
if ($flag && ! trait_exists(LazyGhostTrait::class)) {
11131114
throw new LogicException(
11141115
'Lazy ghost objects cannot be enabled because the "symfony/var-exporter" library'

src/Proxy/ProxyFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ private function generateProxyClass(ClassMetadata $class, ?string $fileName, str
568568

569569
private function generateUseLazyGhostTrait(ClassMetadata $class): string
570570
{
571+
// @phpstan-ignore staticMethod.deprecated (Because we support Symfony < 7.3)
571572
$code = ProxyHelper::generateLazyGhost($class->getReflectionClass());
572573
$code = substr($code, 7 + (int) strpos($code, "\n{"));
573574
$code = substr($code, 0, (int) strpos($code, "\n}"));

src/Tools/Console/Command/MappingDescribeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function configure(): void
6565

6666
protected function execute(InputInterface $input, OutputInterface $output): int
6767
{
68-
$ui = (new SymfonyStyle($input, $output))->getErrorStyle();
68+
$ui = new SymfonyStyle($input, $output);
6969

7070
$entityManager = $this->getEntityManager($input);
7171

0 commit comments

Comments
 (0)