Skip to content

Commit c6fa14e

Browse files
authored
Merge pull request #11971 from doctrine/3.3.x
Merge 3.3.x up into 3.4.x
2 parents 0a43e4a + 05c8c5f commit c6fa14e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

docs/en/cookbook/generated-columns.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ There is no explicit mapping instruction for generated columns. Instead, you
1515
specify that the column should not be written to, and define a custom column
1616
definition.
1717

18-
.. code-block:: php
19-
.. literalinclude:: generated-columns/Person.php
18+
.. literalinclude:: generated-columns/Person.php
19+
:language: php
2020

2121
* ``insertable``, ``updatable``: Setting these to false tells Doctrine to never
2222
write this column - writing to a generated column would result in an error
@@ -40,5 +40,5 @@ Lets assume we have an entity that stores a blogpost as structured JSON.
4040
To avoid extracting all titles on the fly when listing the posts, we create a
4141
generated column with the field.
4242

43-
.. code-block:: php
44-
.. literalinclude:: generated-columns/Article.php
43+
.. literalinclude:: generated-columns/Article.php
44+
:language: php

src/Proxy/ProxyFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ private function generateProxyClass(ClassMetadata $class, string|null $fileName,
419419

420420
private function generateUseLazyGhostTrait(ClassMetadata $class): string
421421
{
422+
// @phpstan-ignore staticMethod.deprecated (Because we support Symfony < 7.3)
422423
$code = ProxyHelper::generateLazyGhost($class->getReflectionClass());
423424
$code = substr($code, 7 + (int) strpos($code, "\n{"));
424425
$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
@@ -64,7 +64,7 @@ protected function configure(): void
6464

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

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

0 commit comments

Comments
 (0)