Skip to content

Commit 18c153e

Browse files
committed
Merge branch '2.10.x' into 3.0.x
2 parents bb60e06 + f414e57 commit 18c153e

29 files changed

+267
-175
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"doctrine/annotations": "^1.13",
4040
"doctrine/coding-standard": "^9.0",
4141
"phpbench/phpbench": "^0.16.10 || ^1.0",
42-
"phpstan/phpstan": "0.12.98",
42+
"phpstan/phpstan": "0.12.99",
4343
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.4",
4444
"squizlabs/php_codesniffer": "3.6.0",
4545
"symfony/cache": "^4.4 || ^5.2",

docs/en/reference/events.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,8 @@ postFlush
659659
preUpdate
660660
~~~~~~~~~
661661

662-
PreUpdate is the most restrictive to use event, since it is called
663-
right before an update statement is called for an entity inside the
664-
``EntityManager#flush()`` method. Note that this event is not
662+
PreUpdate is called inside the ``EntityManager#flush()`` method,
663+
right before an SQL ``UPDATE`` statement. This event is not
665664
triggered when the computed changeset is empty.
666665

667666
Changes to associations of the updated entity are never allowed in

docs/en/reference/second-level-cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ The Cache Mode controls how a particular query interacts with the second-level c
579579
580580
.. note::
581581

582-
The the default query cache mode is ```Cache::MODE_NORMAL```
582+
The default query cache mode is ```Cache::MODE_NORMAL```
583583

584584
DELETE / UPDATE queries
585585
~~~~~~~~~~~~~~~~~~~~~~~

lib/Doctrine/ORM/AbstractQuery.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,6 @@ public function getSingleResult($hydrationMode = null)
974974
*
975975
* @throws NoResultException If the query returned no result.
976976
* @throws NonUniqueResultException If the query result is not unique.
977-
* @throws NoResultException If the query returned no result.
978977
*/
979978
public function getSingleScalarResult()
980979
{

lib/Doctrine/ORM/Id/IdentityGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class IdentityGenerator extends AbstractIdGenerator
1616
/**
1717
* The name of the sequence to pass to lastInsertId(), if any.
1818
*
19-
* @var string
19+
* @var string|null
2020
*/
2121
private $sequenceName;
2222

lib/Doctrine/ORM/Mapping/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class Cache implements Annotation
2323
*/
2424
public $usage = 'READ_ONLY';
2525

26-
/** @var string Cache region name. */
26+
/** @var string|null Cache region name. */
2727
public $region;
2828

2929
public function __construct(string $usage = 'READ_ONLY', ?string $region = null)

lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ class ClassMetadataInfo implements ClassMetadata
621621
* )
622622
* </code>
623623
*
624-
* @var mixed[]
624+
* @var array<string, mixed>
625625
* @psalm-var array{sequenceName: string, allocationSize: string, initialValue: string, quoted?: mixed}
626626
* @todo Merge with tableGeneratorDefinition into generic generatorDefinition
627627
*/
@@ -1146,7 +1146,7 @@ public function enableAssociationCache($fieldName, array $cache)
11461146
/**
11471147
* @param string $fieldName
11481148
* @param array $cache
1149-
* @psalm-param array{usage?: int, region?: string} $cache
1149+
* @psalm-param array{usage?: int, region?: string|null} $cache
11501150
*
11511151
* @return int[]|string[]
11521152
* @psalm-return array{usage: int, region: string|null}
@@ -3278,7 +3278,7 @@ public function setIdGenerator($generator)
32783278
/**
32793279
* Sets definition.
32803280
*
3281-
* @psalm-param array<string, string> $definition
3281+
* @psalm-param array<string, string|null> $definition
32823282
*
32833283
* @return void
32843284
*/

lib/Doctrine/ORM/Mapping/CustomIdGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#[Attribute(Attribute::TARGET_PROPERTY)]
1616
final class CustomIdGenerator implements Annotation
1717
{
18-
/** @var string */
18+
/** @var string|null */
1919
public $class;
2020

2121
public function __construct(?string $class = null)

lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,11 +688,11 @@ private function getMethodCallbacks(ReflectionMethod $method): array
688688
*
689689
* @return mixed[]
690690
* @psalm-return array{
691-
* name: string,
691+
* name: string|null,
692692
* unique: bool,
693693
* nullable: bool,
694694
* onDelete: mixed,
695-
* columnDefinition: string,
695+
* columnDefinition: string|null,
696696
* referencedColumnName: string
697697
* }
698698
*/

lib/Doctrine/ORM/Mapping/Driver/AttributeDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,11 @@ private function getMethodCallbacks(ReflectionMethod $method): array
522522
*
523523
* @return mixed[]
524524
* @psalm-return array{
525-
* name: string,
525+
* name: string|null,
526526
* unique: bool,
527527
* nullable: bool,
528528
* onDelete: mixed,
529-
* columnDefinition: string,
529+
* columnDefinition: string|null,
530530
* referencedColumnName: string
531531
* }
532532
*/

0 commit comments

Comments
 (0)