@@ -78,11 +78,11 @@ public function testNormalize(): void
7878
7979 $ propertyNameCollection = new PropertyNameCollection (['name ' ]);
8080 $ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
81- $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, [] )->willReturn ($ propertyNameCollection );
81+ $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, Argument:: type ( ' array ' ) )->willReturn ($ propertyNameCollection );
8282
8383 $ propertyMetadata = (new ApiProperty ())->withReadable (true );
8484 $ propertyMetadataFactoryProphecy = $ this ->prophesize (PropertyMetadataFactoryInterface::class);
85- $ propertyMetadataFactoryProphecy ->create (Dummy::class, 'name ' , [] )->willReturn ($ propertyMetadata );
85+ $ propertyMetadataFactoryProphecy ->create (Dummy::class, 'name ' , Argument:: type ( ' array ' ) )->willReturn ($ propertyMetadata );
8686
8787 $ iriConverterProphecy = $ this ->prophesize (IriConverterInterface::class);
8888 $ iriConverterProphecy ->getIriFromResource ($ dummy , UrlGeneratorInterface::ABS_URL , Argument::any (), Argument::type ('array ' ))->willReturn ('/dummies/1 ' );
@@ -131,13 +131,13 @@ public function testNormalizeWithUnsafeCacheProperty(): void
131131
132132 $ propertyNameCollection = new PropertyNameCollection (['title ' , 'ownerOnlyProperty ' ]);
133133 $ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
134- $ propertyNameCollectionFactoryProphecy ->create (SecuredDummy::class, [] )->willReturn ($ propertyNameCollection );
134+ $ propertyNameCollectionFactoryProphecy ->create (SecuredDummy::class, Argument:: type ( ' array ' ) )->willReturn ($ propertyNameCollection );
135135
136136 $ unsecuredPropertyMetadata = (new ApiProperty ())->withReadable (true );
137137 $ securedPropertyMetadata = (new ApiProperty ())->withReadable (true )->withSecurity ('object == null or object.getOwner() == user ' );
138138 $ 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 );
141141
142142 $ iriConverterProphecy = $ this ->prophesize (IriConverterInterface::class);
143143 $ iriConverterProphecy ->getIriFromResource ($ securedDummyWithOwnerOnlyPropertyAllowed , UrlGeneratorInterface::ABS_URL , Argument::any (), Argument::type ('array ' ))->willReturn ('/dummies/1 ' );
@@ -216,11 +216,11 @@ public function testNormalizeNoResolverData(): void
216216
217217 $ propertyNameCollection = new PropertyNameCollection (['name ' ]);
218218 $ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
219- $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, [] )->willReturn ($ propertyNameCollection );
219+ $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, Argument:: type ( ' array ' ) )->willReturn ($ propertyNameCollection );
220220
221221 $ propertyMetadata = (new ApiProperty ())->withWritable (true )->withReadable (true );
222222 $ propertyMetadataFactoryProphecy = $ this ->prophesize (PropertyMetadataFactoryInterface::class);
223- $ propertyMetadataFactoryProphecy ->create (Dummy::class, 'name ' , [] )->willReturn ($ propertyMetadata );
223+ $ propertyMetadataFactoryProphecy ->create (Dummy::class, 'name ' , Argument:: type ( ' array ' ) )->willReturn ($ propertyMetadata );
224224
225225 $ iriConverterProphecy = $ this ->prophesize (IriConverterInterface::class);
226226 $ iriConverterProphecy ->getIriFromResource ($ dummy , UrlGeneratorInterface::ABS_URL , Argument::any (), Argument::type ('array ' ))->willReturn ('/dummies/1 ' );
@@ -260,11 +260,11 @@ public function testDenormalize(): void
260260
261261 $ propertyNameCollection = new PropertyNameCollection (['name ' ]);
262262 $ propertyNameCollectionFactoryProphecy = $ this ->prophesize (PropertyNameCollectionFactoryInterface::class);
263- $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, [] )->willReturn ($ propertyNameCollection )->shouldBeCalled ();
263+ $ propertyNameCollectionFactoryProphecy ->create (Dummy::class, Argument:: type ( ' array ' ) )->willReturn ($ propertyNameCollection )->shouldBeCalled ();
264264
265265 $ propertyMetadata = (new ApiProperty ())->withWritable (true )->withReadable (true );
266266 $ 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 ();
268268
269269 $ iriConverterProphecy = $ this ->prophesize (IriConverterInterface::class);
270270
0 commit comments