Skip to content

Commit f033c43

Browse files
authored
Fix phpstan build (#2321)
1 parent 894ee25 commit f033c43

File tree

2 files changed

+1
-46
lines changed

2 files changed

+1
-46
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -219,46 +219,6 @@ parameters:
219219
count: 1
220220
path: tests/Doctrine/ODM/MongoDB/Tests/Functional/Ticket/MODM95Test.php
221221

222-
-
223-
message: "#^Access to an undefined property ProxyManager\\\\Proxy\\\\GhostObjectInterface\\:\\:\\$birthdate\\.$#"
224-
count: 1
225-
path: tests/Doctrine/ODM/MongoDB/Tests/HydratorTest.php
226-
227-
-
228-
message: "#^Access to an undefined property ProxyManager\\\\Proxy\\\\GhostObjectInterface\\:\\:\\$embedMany\\.$#"
229-
count: 1
230-
path: tests/Doctrine/ODM/MongoDB/Tests/HydratorTest.php
231-
232-
-
233-
message: "#^Access to an undefined property ProxyManager\\\\Proxy\\\\GhostObjectInterface\\:\\:\\$embedOne\\.$#"
234-
count: 1
235-
path: tests/Doctrine/ODM/MongoDB/Tests/HydratorTest.php
236-
237-
-
238-
message: "#^Access to an undefined property ProxyManager\\\\Proxy\\\\GhostObjectInterface\\:\\:\\$id\\.$#"
239-
count: 1
240-
path: tests/Doctrine/ODM/MongoDB/Tests/HydratorTest.php
241-
242-
-
243-
message: "#^Access to an undefined property ProxyManager\\\\Proxy\\\\GhostObjectInterface\\:\\:\\$name\\.$#"
244-
count: 1
245-
path: tests/Doctrine/ODM/MongoDB/Tests/HydratorTest.php
246-
247-
-
248-
message: "#^Access to an undefined property ProxyManager\\\\Proxy\\\\GhostObjectInterface\\:\\:\\$referenceMany\\.$#"
249-
count: 1
250-
path: tests/Doctrine/ODM/MongoDB/Tests/HydratorTest.php
251-
252-
-
253-
message: "#^Access to an undefined property ProxyManager\\\\Proxy\\\\GhostObjectInterface\\:\\:\\$referenceOne\\.$#"
254-
count: 1
255-
path: tests/Doctrine/ODM/MongoDB/Tests/HydratorTest.php
256-
257-
-
258-
message: "#^Access to an undefined property ProxyManager\\\\Proxy\\\\GhostObjectInterface\\:\\:\\$title\\.$#"
259-
count: 1
260-
path: tests/Doctrine/ODM/MongoDB/Tests/HydratorTest.php
261-
262222
-
263223
message: "#^Call to an undefined method Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\<object\\>\\:\\:mapField\\(\\)\\.$#"
264224
count: 1
@@ -269,11 +229,6 @@ parameters:
269229
count: 1
270230
path: tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataTest.php
271231

272-
-
273-
message: "#^Call to an undefined method ProxyManager\\\\Proxy\\\\GhostObjectInterface\\:\\:getName\\(\\)\\.$#"
274-
count: 1
275-
path: tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataTest.php
276-
277232
-
278233
message: "#^Function mongodb\\\\bson\\\\tophp invoked with 1 parameter, 2 required\\.$#"
279234
count: 2

tests/Doctrine/ODM/MongoDB/Tests/HydratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class HydrationClosureUser
196196
/**
197197
* @ODM\ReferenceOne(targetDocument=HydrationClosureReferenceOne::class)
198198
*
199-
* @var HydrationClosureReferenceOne
199+
* @var HydrationClosureReferenceOne|null
200200
*/
201201
public $referenceOne;
202202

0 commit comments

Comments
 (0)