@@ -78,11 +78,11 @@ public function testNormalize(): void
78
78
79
79
$ propertyNameCollection = new PropertyNameCollection (['name ' ]);
80
80
$ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
81
- $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, [] )->willReturn ($ propertyNameCollection );
81
+ $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, Argument:: type ( ' array ' ) )->willReturn ($ propertyNameCollection );
82
82
83
83
$ propertyMetadata = (new ApiProperty ())->withReadable (true );
84
84
$ propertyMetadataFactoryProphecy = $ this ->prophesize (PropertyMetadataFactoryInterface::class);
85
- $ propertyMetadataFactoryProphecy ->create (Dummy::class, 'name ' , [] )->willReturn ($ propertyMetadata );
85
+ $ propertyMetadataFactoryProphecy ->create (Dummy::class, 'name ' , Argument:: type ( ' array ' ) )->willReturn ($ propertyMetadata );
86
86
87
87
$ iriConverterProphecy = $ this ->prophesize (IriConverterInterface::class);
88
88
$ iriConverterProphecy ->getIriFromResource ($ dummy , UrlGeneratorInterface::ABS_URL , Argument::any (), Argument::type ('array ' ))->willReturn ('/dummies/1 ' );
@@ -131,13 +131,13 @@ public function testNormalizeWithUnsafeCacheProperty(): void
131
131
132
132
$ propertyNameCollection = new PropertyNameCollection (['title ' , 'ownerOnlyProperty ' ]);
133
133
$ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
134
- $ propertyNameCollectionFactoryProphecy ->create (SecuredDummy::class, [] )->willReturn ($ propertyNameCollection );
134
+ $ propertyNameCollectionFactoryProphecy ->create (SecuredDummy::class, Argument:: type ( ' array ' ) )->willReturn ($ propertyNameCollection );
135
135
136
136
$ unsecuredPropertyMetadata = (new ApiProperty ())->withReadable (true );
137
137
$ securedPropertyMetadata = (new ApiProperty ())->withReadable (true )->withSecurity ('object == null or object.getOwner() == user ' );
138
138
$ propertyMetadataFactoryProphecy = $ this ->prophesize (PropertyMetadataFactoryInterface::class);
139
- $ propertyMetadataFactoryProphecy ->create (SecuredDummy::class, 'title ' , [] )->willReturn ($ unsecuredPropertyMetadata );
140
- $ propertyMetadataFactoryProphecy ->create (SecuredDummy::class, 'ownerOnlyProperty ' , [] )->willReturn ($ securedPropertyMetadata );
139
+ $ propertyMetadataFactoryProphecy ->create (SecuredDummy::class, 'title ' , Argument:: type ( ' array ' ) )->willReturn ($ unsecuredPropertyMetadata );
140
+ $ propertyMetadataFactoryProphecy ->create (SecuredDummy::class, 'ownerOnlyProperty ' , Argument:: type ( ' array ' ) )->willReturn ($ securedPropertyMetadata );
141
141
142
142
$ iriConverterProphecy = $ this ->prophesize (IriConverterInterface::class);
143
143
$ iriConverterProphecy ->getIriFromResource ($ securedDummyWithOwnerOnlyPropertyAllowed , UrlGeneratorInterface::ABS_URL , Argument::any (), Argument::type ('array ' ))->willReturn ('/dummies/1 ' );
@@ -216,11 +216,11 @@ public function testNormalizeNoResolverData(): void
216
216
217
217
$ propertyNameCollection = new PropertyNameCollection (['name ' ]);
218
218
$ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
219
- $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, [] )->willReturn ($ propertyNameCollection );
219
+ $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, Argument:: type ( ' array ' ) )->willReturn ($ propertyNameCollection );
220
220
221
221
$ propertyMetadata = (new ApiProperty ())->withWritable (true )->withReadable (true );
222
222
$ propertyMetadataFactoryProphecy = $ this ->prophesize (PropertyMetadataFactoryInterface::class);
223
- $ propertyMetadataFactoryProphecy ->create (Dummy::class, 'name ' , [] )->willReturn ($ propertyMetadata );
223
+ $ propertyMetadataFactoryProphecy ->create (Dummy::class, 'name ' , Argument:: type ( ' array ' ) )->willReturn ($ propertyMetadata );
224
224
225
225
$ iriConverterProphecy = $ this ->prophesize (IriConverterInterface::class);
226
226
$ iriConverterProphecy ->getIriFromResource ($ dummy , UrlGeneratorInterface::ABS_URL , Argument::any (), Argument::type ('array ' ))->willReturn ('/dummies/1 ' );
@@ -260,11 +260,11 @@ public function testDenormalize(): void
260
260
261
261
$ propertyNameCollection = new PropertyNameCollection (['name ' ]);
262
262
$ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
263
- $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, [] )->willReturn ($ propertyNameCollection )->shouldBeCalled ();
263
+ $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, Argument:: type ( ' array ' ) )->willReturn ($ propertyNameCollection )->shouldBeCalled ();
264
264
265
265
$ propertyMetadata = (new ApiProperty ())->withWritable (true )->withReadable (true );
266
266
$ propertyMetadataFactoryProphecy = $ this ->prophesize (PropertyMetadataFactoryInterface::class);
267
- $ propertyMetadataFactoryProphecy ->create (Dummy::class, 'name ' , [] )->willReturn ($ propertyMetadata )->shouldBeCalled ();
267
+ $ propertyMetadataFactoryProphecy ->create (Dummy::class, 'name ' , Argument:: type ( ' array ' ) )->willReturn ($ propertyMetadata )->shouldBeCalled ();
268
268
269
269
$ iriConverterProphecy = $ this ->prophesize (IriConverterInterface::class);
270
270
0 commit comments