13
13
use Doctrine \ODM \MongoDB \UnitOfWork ;
14
14
use Doctrine \ODM \MongoDB \Utility \CollectionHelper ;
15
15
use Traversable ;
16
- use ReturnTypeWillChange ;
17
16
18
17
use function array_combine ;
19
18
use function array_diff_key ;
@@ -410,7 +409,7 @@ public function getValues()
410
409
/**
411
410
* @return int
412
411
*/
413
- #[ReturnTypeWillChange]
412
+ #[\ ReturnTypeWillChange]
414
413
public function count ()
415
414
{
416
415
// Workaround around not being able to directly count inverse collections anymore
@@ -438,7 +437,7 @@ public function isEmpty()
438
437
* @return Traversable
439
438
* @psalm-return Traversable<TKey, T>
440
439
*/
441
- #[ReturnTypeWillChange]
440
+ #[\ ReturnTypeWillChange]
442
441
public function getIterator ()
443
442
{
444
443
$ this ->initialize ();
@@ -537,7 +536,7 @@ public function __sleep()
537
536
*
538
537
* @return bool
539
538
*/
540
- #[ReturnTypeWillChange]
539
+ #[\ ReturnTypeWillChange]
541
540
public function offsetExists ($ offset )
542
541
{
543
542
$ this ->initialize ();
@@ -551,7 +550,7 @@ public function offsetExists($offset)
551
550
* @return mixed
552
551
* @psalm-return T|null
553
552
*/
554
- #[ReturnTypeWillChange]
553
+ #[\ ReturnTypeWillChange]
555
554
public function offsetGet ($ offset )
556
555
{
557
556
$ this ->initialize ();
@@ -565,7 +564,7 @@ public function offsetGet($offset)
565
564
*
566
565
* @return void
567
566
*/
568
- #[ReturnTypeWillChange]
567
+ #[\ ReturnTypeWillChange]
569
568
public function offsetSet ($ offset , $ value )
570
569
{
571
570
if (! isset ($ offset )) {
@@ -582,7 +581,7 @@ public function offsetSet($offset, $value)
582
581
*
583
582
* @return void
584
583
*/
585
- #[ReturnTypeWillChange]
584
+ #[\ ReturnTypeWillChange]
586
585
public function offsetUnset ($ offset )
587
586
{
588
587
$ this ->doRemove ($ offset , true );
0 commit comments