Skip to content

Commit a28c84c

Browse files
+ minors fixes for vendor/bin/phpstan validation
1 parent 9746da5 commit a28c84c

File tree

9 files changed

+12
-2
lines changed

9 files changed

+12
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{ "name": "Andreas Braun", "email": "[email protected]" }
2323
],
2424
"require": {
25-
"php": "^7.4 || ^8.0",
25+
"php": "^8.1",
2626
"ext-mongodb": "^1.5",
2727
"doctrine/annotations": "^1.12",
2828
"doctrine/cache": "^1.11 || ^2.0",

lib/Doctrine/ODM/MongoDB/Event/PreUpdateEventArgs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Doctrine\ODM\MongoDB\Event;
66

77
use Doctrine\ODM\MongoDB\DocumentManager;
8+
use Doctrine\ODM\MongoDB\UnitOfWork;
89
use InvalidArgumentException;
910

1011
use function get_class;

lib/Doctrine/ODM/MongoDB/Hydrator/HydratorInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace Doctrine\ODM\MongoDB\Hydrator;
66

7+
use Doctrine\ODM\MongoDB\UnitOfWork;
8+
79
/**
810
* The HydratorInterface defines methods all hydrator need to implement
911
*

lib/Doctrine/ODM/MongoDB/Iterator/CachingIterator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Generator;
99
use RuntimeException;
1010
use Traversable;
11+
use ReturnTypeWillChange;
1112

1213
use function count;
1314
use function current;

lib/Doctrine/ODM/MongoDB/Iterator/HydratingIterator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Iterator;
1111
use RuntimeException;
1212
use Traversable;
13+
use ReturnTypeWillChange;
1314

1415
/**
1516
* Iterator that wraps a traversable and hydrates results into objects

lib/Doctrine/ODM/MongoDB/Iterator/UnrewindableIterator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use LogicException;
99
use RuntimeException;
1010
use Traversable;
11+
use ReturnTypeWillChange;
1112

1213
use function iterator_to_array;
1314
use function sprintf;

lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
use Closure;
99
use Doctrine\Common\Collections\Collection as BaseCollection;
1010
use Doctrine\ODM\MongoDB\DocumentManager;
11+
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
1112
use Doctrine\ODM\MongoDB\MongoDBException;
1213
use Doctrine\ODM\MongoDB\UnitOfWork;
1314
use Doctrine\ODM\MongoDB\Utility\CollectionHelper;
1415
use Traversable;
16+
use ReturnTypeWillChange;
1517

1618
use function array_combine;
1719
use function array_diff_key;

lib/Doctrine/ODM/MongoDB/UnitOfWork.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
use Doctrine\Persistence\PropertyChangedListener;
2626
use InvalidArgumentException;
2727
use MongoDB\BSON\UTCDateTime;
28+
use MongoDB\Driver\WriteConcern;
2829
use ProxyManager\Proxy\GhostObjectInterface;
2930
use ReflectionProperty;
3031
use UnexpectedValueException;
@@ -54,7 +55,7 @@
5455
* 1: mixed
5556
* }
5657
* @psalm-type Hints = array<int, mixed>
57-
* @psalm-type CommitOptions array{
58+
* @psalm-type CommitOptions = array{
5859
* fsync?: bool,
5960
* safe?: int,
6061
* w?: int,

tests/Doctrine/ODM/MongoDB/Tests/Functional/Ticket/GH1152Test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Doctrine\ODM\MongoDB\Event\LifecycleEventArgs;
88
use Doctrine\ODM\MongoDB\Events;
99
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
10+
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
1011
use Doctrine\ODM\MongoDB\Tests\BaseTest;
1112

1213
class GH1152Test extends BaseTest

0 commit comments

Comments
 (0)