Skip to content

Commit d25dc84

Browse files
committed
rector fixes
1 parent b1aeae7 commit d25dc84

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

config/phpunit.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22

33
declare(strict_types=1);
44

5-
$config = require __DIR__.'/dev.php';
6-
7-
return $config;
5+
return require __DIR__.'/dev.php';

tests/Integration/AbstractIntegrationTestCase.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract class AbstractIntegrationTestCase extends TestCase
1414
*/
1515
public const DEFAULT_INTEGRATION_ENDPOINT = 'http://localhost:%d';
1616

17-
public const DATE_PATTERN = '/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}\:[0-9]{2}\:[0-9]{2}\+[0-9]{2}\:[0-9]{2}$/';
17+
public const DATE_PATTERN = '/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\+\d{2}\:\d{2}$/';
1818
public const UUID_PATTERN = '/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/';
1919

2020
private ?\CurlHandle $curl = null;
@@ -29,7 +29,7 @@ protected function httpRequest(string $method, string $resource, array $headers
2929
$curlHeaders[] = \sprintf('%s: %s', $key, implode(', ', (array) $value));
3030
}
3131

32-
if (null === $this->curl) {
32+
if (!$this->curl instanceof \CurlHandle) {
3333
$this->curl = $this->initializeCurl();
3434
}
3535

0 commit comments

Comments
 (0)