Skip to content

Commit af76fc9

Browse files
committed
Upgrade to php-cs-fixer-config v2
1 parent 5137787 commit af76fc9

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

.php_cs.dist renamed to .php-cs-fixer.dist.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
->in(__DIR__ . '/src')
66
->in(__DIR__ . '/test');
77

8-
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;
9-
10-
$config->setCacheFile($cacheDir . '/.php_cs.cache');
8+
$config->setCacheFile(__DIR__ . '/.php_cs.cache');
119

1210
return $config;

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"phpunit/phpunit": "^9"
2727
},
2828
"require-dev": {
29-
"amphp/php-cs-fixer-config": "dev-master"
29+
"amphp/php-cs-fixer-config": "^2-dev"
3030
},
3131
"autoload": {
3232
"psr-4": {

src/AsyncTestCase.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ final protected function runAsyncTest(mixed ...$args): mixed
5656
if (!$this->setUpInvoked) {
5757
self::fail(\sprintf(
5858
'%s::setUp() overrides %s::setUp() without calling the parent method',
59-
\str_replace("\0", '@', \get_class($this)), // replace NUL-byte in anonymous class name
59+
\str_replace("\0", '@', static::class), // replace NUL-byte in anonymous class name
6060
self::class
6161
));
6262
}
@@ -179,8 +179,6 @@ final protected function setTimeout(float $seconds): void
179179
* @param int $invocationCount Number of times the callback must be invoked or the test will fail.
180180
* @param callable|null $returnCallback Callable providing a return value for the callback.
181181
* @param array $expectArgs Arguments expected to be passed to the callback.
182-
*
183-
* @return \Closure
184182
*/
185183
final protected function createCallback(
186184
int $invocationCount,

test/AsyncTestCaseTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ public function testArgumentSupport(string $foo, int $bar, bool $baz): void
101101
}
102102

103103
/**
104-
* @param string|null $value
105-
*
106104
* @depends testReturningFuture
107105
*/
108106
public function testReturnValueFromDependentTest(string $value = null): void

0 commit comments

Comments
 (0)