@@ -53,7 +53,7 @@ public function testParamTagTypeIsOmitted()
53
53
$ this ->assertNull ($ this ->extractor ->getTypes (OmittedParamTagTypeDocBlock::class, 'omittedType ' ));
54
54
}
55
55
56
- public function invalidTypesProvider ()
56
+ public static function invalidTypesProvider ()
57
57
{
58
58
return [
59
59
'pub ' => ['pub ' , null , null ],
@@ -83,7 +83,7 @@ public function testExtractTypesWithNoPrefixes($property, array $type = null)
83
83
$ this ->assertEquals ($ type , $ noPrefixExtractor ->getTypes ('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy ' , $ property ));
84
84
}
85
85
86
- public function typesProvider ()
86
+ public static function typesProvider ()
87
87
{
88
88
return [
89
89
['foo ' , null , 'Short description. ' , 'Long description. ' ],
@@ -166,7 +166,7 @@ public function testExtractCollection($property, array $type = null, $shortDescr
166
166
$ this ->testExtract ($ property , $ type , $ shortDescription , $ longDescription );
167
167
}
168
168
169
- public function provideCollectionTypes ()
169
+ public static function provideCollectionTypes ()
170
170
{
171
171
return [
172
172
['iteratorCollection ' , [new Type (Type::BUILTIN_TYPE_OBJECT , false , 'Iterator ' , true , null , new Type (Type::BUILTIN_TYPE_STRING ))], null , null ],
@@ -230,7 +230,7 @@ public function testExtractTypesWithCustomPrefixes($property, array $type = null
230
230
$ this ->assertEquals ($ type , $ customExtractor ->getTypes ('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy ' , $ property ));
231
231
}
232
232
233
- public function typesWithCustomPrefixesProvider ()
233
+ public static function typesWithCustomPrefixesProvider ()
234
234
{
235
235
return [
236
236
['foo ' , null , 'Short description. ' , 'Long description. ' ],
@@ -271,7 +271,7 @@ public function typesWithCustomPrefixesProvider()
271
271
];
272
272
}
273
273
274
- public function typesWithNoPrefixesProvider ()
274
+ public static function typesWithNoPrefixesProvider ()
275
275
{
276
276
return [
277
277
['foo ' , null , 'Short description. ' , 'Long description. ' ],
@@ -317,7 +317,7 @@ public function testReturnNullOnEmptyDocBlock()
317
317
$ this ->assertNull ($ this ->extractor ->getShortDescription (EmptyDocBlock::class, 'foo ' ));
318
318
}
319
319
320
- public function dockBlockFallbackTypesProvider ()
320
+ public static function dockBlockFallbackTypesProvider ()
321
321
{
322
322
return [
323
323
'pub ' => [
@@ -348,7 +348,7 @@ public function testPropertiesDefinedByTraits(string $property, Type $type)
348
348
$ this ->assertEquals ([$ type ], $ this ->extractor ->getTypes (DummyUsingTrait::class, $ property ));
349
349
}
350
350
351
- public function propertiesDefinedByTraitsProvider (): array
351
+ public static function propertiesDefinedByTraitsProvider (): array
352
352
{
353
353
return [
354
354
['propertyInTraitPrimitiveType ' , new Type (Type::BUILTIN_TYPE_STRING )],
@@ -368,7 +368,7 @@ public function testMethodsDefinedByTraits(string $property, Type $type)
368
368
$ this ->assertEquals ([$ type ], $ this ->extractor ->getTypes (DummyUsingTrait::class, $ property ));
369
369
}
370
370
371
- public function methodsDefinedByTraitsProvider (): array
371
+ public static function methodsDefinedByTraitsProvider (): array
372
372
{
373
373
return [
374
374
['methodInTraitPrimitiveType ' , new Type (Type::BUILTIN_TYPE_STRING )],
@@ -388,7 +388,7 @@ public function testPropertiesStaticType(string $class, string $property, Type $
388
388
$ this ->assertEquals ([$ type ], $ this ->extractor ->getTypes ($ class , $ property ));
389
389
}
390
390
391
- public function propertiesStaticTypeProvider (): array
391
+ public static function propertiesStaticTypeProvider (): array
392
392
{
393
393
return [
394
394
[ParentDummy::class, 'propertyTypeStatic ' , new Type (Type::BUILTIN_TYPE_OBJECT , false , ParentDummy::class)],
@@ -404,7 +404,7 @@ public function testPropertiesParentType(string $class, string $property, ?array
404
404
$ this ->assertEquals ($ types , $ this ->extractor ->getTypes ($ class , $ property ));
405
405
}
406
406
407
- public function propertiesParentTypeProvider (): array
407
+ public static function propertiesParentTypeProvider (): array
408
408
{
409
409
return [
410
410
[ParentDummy::class, 'parentAnnotationNoParent ' , [new Type (Type::BUILTIN_TYPE_OBJECT , false , 'parent ' )]],
@@ -435,7 +435,7 @@ public function testExtractConstructorTypes($property, array $type = null)
435
435
$ this ->assertEquals ($ type , $ this ->extractor ->getTypesFromConstructor ('Symfony\Component\PropertyInfo\Tests\Fixtures\ConstructorDummy ' , $ property ));
436
436
}
437
437
438
- public function constructorTypesProvider ()
438
+ public static function constructorTypesProvider ()
439
439
{
440
440
return [
441
441
['date ' , [new Type (Type::BUILTIN_TYPE_INT )]],
0 commit comments