@@ -60,7 +60,7 @@ public function testAllowedPossibleConstantsType($constants): void
6060 * @return object[][]
6161 * @psalm-return array<class-string, array{SplArrayObject|StdlibArrayObject}>
6262 */
63- public function constantsType (): array
63+ public static function constantsType (): array
6464 {
6565 return [
6666 SplArrayObject::class => [new SplArrayObject ()],
@@ -84,7 +84,7 @@ public function testValidConstantTypes(PropertyValueGenerator $generator, $expec
8484 * @return array
8585 * @psalm-return non-empty-list<array{PropertyValueGenerator, non-empty-string}>
8686 */
87- public function validConstantTypes (): array
87+ public static function validConstantTypes (): array
8888 {
8989 return [
9090 [
@@ -127,7 +127,7 @@ public function validConstantTypes(): array
127127 * @param array $value
128128 * @return array
129129 */
130- protected function generateArrayData ($ longOutput , array $ value )
130+ protected static function generateArrayData ($ longOutput , array $ value )
131131 {
132132 $ shortOutput = str_replace (
133133 ['array( ' , ') ' ],
@@ -164,7 +164,7 @@ protected function generateArrayData($longOutput, array $value)
164164 *
165165 * @return array
166166 */
167- public function simpleArray ()
167+ public static function simpleArray ()
168168 {
169169 $ value = ['foo ' ];
170170
@@ -174,15 +174,15 @@ public function simpleArray()
174174)
175175EOS ;
176176
177- return $ this -> generateArrayData ($ longOutput , $ value );
177+ return self :: generateArrayData ($ longOutput , $ value );
178178 }
179179
180180 /**
181181 * Data provider for testPropertyDefaultValueCanHandleComplexArrayOfTypes test
182182 *
183183 * @return array
184184 */
185- public function complexArray ()
185+ public static function complexArray ()
186186 {
187187 $ value = [
188188 5 ,
@@ -222,13 +222,13 @@ public function complexArray()
222222)
223223EOS ;
224224
225- return $ this -> generateArrayData ($ longOutput , $ value );
225+ return self :: generateArrayData ($ longOutput , $ value );
226226 }
227227
228228 /**
229229 * Data provider for testPropertyDefaultValueCanHandleComplexArrayWCustomIndentOfTypes test
230230 */
231- public function complexArrayWCustomIndent (): array
231+ public static function complexArrayWCustomIndent (): array
232232 {
233233 $ value = [
234234 '5bcf08a0a5d20 ' => [
@@ -302,15 +302,15 @@ public function complexArrayWCustomIndent(): array
302302)
303303EOS ;
304304
305- return $ this -> generateArrayData ($ longOutput , $ value );
305+ return self :: generateArrayData ($ longOutput , $ value );
306306 }
307307
308308 /**
309309 * Data provider for testPropertyDefaultValueCanHandleArrayWithUnsortedKeys test
310310 *
311311 * @return array
312312 */
313- public function unsortedKeysArray ()
313+ public static function unsortedKeysArray ()
314314 {
315315 $ value = [
316316 1 => 'a ' ,
@@ -330,7 +330,7 @@ public function unsortedKeysArray()
330330)
331331EOS ;
332332
333- return $ this -> generateArrayData ($ longOutput , $ value );
333+ return self :: generateArrayData ($ longOutput , $ value );
334334 }
335335
336336 /**
@@ -467,7 +467,7 @@ public function testEscaping($input, $expectedEscapedValue)
467467 *
468468 * @return string[][]
469469 */
470- public function getEscapedParameters ()
470+ public static function getEscapedParameters ()
471471 {
472472 return [
473473 ['\\' , '\\\\' ],
@@ -476,7 +476,7 @@ public function getEscapedParameters()
476476 ];
477477 }
478478
479- public function invalidValue (): Generator
479+ public static function invalidValue (): Generator
480480 {
481481 yield 'object ' => [new DateTime (), DateTime::class];
482482 yield 'resource ' => [fopen ('php://input ' , 'r ' ), 'resource (stream) ' ];
0 commit comments