File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 53
53
with :
54
54
php-version : 8.3
55
55
coverage : none
56
- tools : vimeo/psalm:4.8.1
56
+ tools : vimeo/psalm:5.24.0
57
57
58
58
- name : Download dependencies
59
59
uses : ramsey/composer-install@v1
Original file line number Diff line number Diff line change 15
15
],
16
16
"require" : {
17
17
"php" : " ^8.1" ,
18
- "doctrine/orm" : " ^2.4" ,
18
+ "doctrine/orm" : " ^2.4 || ^3.0 " ,
19
19
"symfony/validator" : " ^6.0 || ^7.0"
20
20
},
21
21
"require-dev" : {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function testValidateValidEntity(): void
64
64
->expects ($ this ->once ())
65
65
->method ('findOneBy ' )
66
66
->with (['id ' => 'foobar ' ])
67
- ->willReturn (' my_user ' );
67
+ ->willReturn (new UserDummy () );
68
68
69
69
$ this ->entityManager
70
70
->expects ($ this ->once ())
@@ -92,7 +92,7 @@ public function testValidateSkipsIfValueEmptyOrNull($value): void
92
92
->expects ($ this ->exactly (0 ))
93
93
->method ('findOneBy ' )
94
94
->with (['id ' => $ value ])
95
- ->willReturn (' my_user ' );
95
+ ->willReturn (new UserDummy () );
96
96
97
97
$ this ->entityManager
98
98
->expects ($ this ->exactly (0 ))
@@ -124,7 +124,7 @@ public function testValidateValidEntityWithCustomProperty(): void
124
124
->expects ($ this ->once ())
125
125
->method ('findOneBy ' )
126
126
->with (['uuid ' => 'foobar ' ])
127
- ->willReturn (' my_user ' );
127
+ ->willReturn (new UserDummy () );
128
128
129
129
$ this ->entityManager
130
130
->expects ($ this ->once ())
@@ -181,7 +181,7 @@ public function testValidateFromAttribute()
181
181
->expects ($ this ->once ())
182
182
->method ('findOneBy ' )
183
183
->with (['uuid ' => 'foobar ' ])
184
- ->willReturn (' my_user ' );
184
+ ->willReturn (new UserDummy () );
185
185
186
186
$ this ->entityManager
187
187
->expects ($ this ->once ())
@@ -193,6 +193,10 @@ public function testValidateFromAttribute()
193
193
}
194
194
}
195
195
196
+ class UserDummy
197
+ {
198
+ }
199
+
196
200
class EntityDummy
197
201
{
198
202
#[EntityExist(entity: 'App\Entity\User ' , property: 'uuid ' )]
You can’t perform that action at this time.
0 commit comments