@@ -106,13 +106,12 @@ public function testAssertKeyIsValid(string $key, bool $isGood): void
106
106
}
107
107
108
108
/**
109
- * @return array
110
109
* @see EnvironmentSetCommandTest::testSetEnvVariable
111
110
*/
112
- public function setEnvVariableDataProvider (): array
111
+ public static function setEnvVariableDataProvider (): array
113
112
{
114
113
// Unfortunately, we can't test nested key names using str_replace().
115
- $ envFileContent = $ this -> getTestEnvFile ();
114
+ $ envFileContent = static :: getTestEnvFile ();
116
115
return [
117
116
[
118
117
&$ envFileContent ,
@@ -194,12 +193,11 @@ public function setEnvVariableDataProvider(): array
194
193
}
195
194
196
195
/**
197
- * @return array
198
196
* @see EnvironmentSetCommandTest::testReadKeyValuePair
199
197
*/
200
- public function readKeyValuePairDataProvider (): array
198
+ public static function readKeyValuePairDataProvider (): array
201
199
{
202
- $ envFileContent = $ this -> getTestEnvFile ();
200
+ $ envFileContent = static :: getTestEnvFile ();
203
201
return [
204
202
[&$ envFileContent , 'not_existed_key ' , null ],
205
203
[&$ envFileContent , 'some_key ' , 'some_key=some_value ' ],
@@ -220,10 +218,9 @@ public function readKeyValuePairDataProvider(): array
220
218
}
221
219
222
220
/**
223
- * @return array
224
221
* @see EnvironmentSetCommandTest::testAssertKeyIsValid
225
222
*/
226
- public function assertKeyIsValidDataProvider (): array
223
+ public static function assertKeyIsValidDataProvider (): array
227
224
{
228
225
return [
229
226
// Wrong keys
@@ -246,10 +243,9 @@ public function assertKeyIsValidDataProvider(): array
246
243
}
247
244
248
245
/**
249
- * @return array
250
246
* @see EnvironmentSetCommandTest::testParseCommandArguments
251
247
*/
252
- public function parseKeyValueArgumentsDataProvider (): array
248
+ public static function parseKeyValueArgumentsDataProvider (): array
253
249
{
254
250
return [
255
251
// Normal syntax.
@@ -344,10 +340,7 @@ public function parseKeyValueArgumentsDataProvider(): array
344
340
];
345
341
}
346
342
347
- /**
348
- * @return string
349
- */
350
- protected function getTestEnvFile (): string
343
+ protected static function getTestEnvFile (): string
351
344
{
352
345
return 'some_key=some_value ' . "\n"
353
346
. ' spaces_at_the_beginning_of_the_line=42442 ' . "\n"
0 commit comments