Skip to content

Commit a3b4224

Browse files
Merge branch '6.4' into 7.2
* 6.4: - CS fixes
2 parents 2a5fa0e + 63f320d commit a3b4224

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

DataCollector/ConfigDataCollector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ public function collect(Request $request, Response $response, ?\Throwable $excep
5757
'php_intl_locale' => class_exists(\Locale::class, false) && \Locale::getDefault() ? \Locale::getDefault() : 'n/a',
5858
'php_timezone' => date_default_timezone_get(),
5959
'xdebug_enabled' => \extension_loaded('xdebug'),
60-
'xdebug_status' => \extension_loaded('xdebug') ? ($xdebugMode && 'off' !== $xdebugMode ? 'Enabled (' . $xdebugMode . ')' : 'Not enabled') : 'Not installed',
60+
'xdebug_status' => \extension_loaded('xdebug') ? ($xdebugMode && 'off' !== $xdebugMode ? 'Enabled ('.$xdebugMode.')' : 'Not enabled') : 'Not installed',
6161
'apcu_enabled' => \extension_loaded('apcu') && filter_var(\ini_get('apc.enabled'), \FILTER_VALIDATE_BOOL),
62-
'apcu_status' => \extension_loaded('apcu') ? (filter_var(\ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? 'Enabled' : 'Not enabled') : 'Not installed',
62+
'apcu_status' => \extension_loaded('apcu') ? (filter_var(\ini_get('apc.enabled'), \FILTER_VALIDATE_BOOLEAN) ? 'Enabled' : 'Not enabled') : 'Not installed',
6363
'zend_opcache_enabled' => \extension_loaded('Zend OPcache') && filter_var(\ini_get('opcache.enable'), \FILTER_VALIDATE_BOOL),
64-
'zend_opcache_status' => \extension_loaded('Zend OPcache') ? (filter_var(\ini_get('opcache.enable'), FILTER_VALIDATE_BOOLEAN) ? 'Enabled' : 'Not enabled') : 'Not installed',
64+
'zend_opcache_status' => \extension_loaded('Zend OPcache') ? (filter_var(\ini_get('opcache.enable'), \FILTER_VALIDATE_BOOLEAN) ? 'Enabled' : 'Not enabled') : 'Not installed',
6565
'bundles' => [],
6666
'sapi_name' => \PHP_SAPI,
6767
];

HttpCache/ResponseCacheStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private function storeRelativeAgeDirective(string $directive, ?int $value, ?int
222222
}
223223

224224
if (false !== $this->ageDirectives[$directive]) {
225-
$value = min($value ?? PHP_INT_MAX, $expires ?? PHP_INT_MAX);
225+
$value = min($value ?? \PHP_INT_MAX, $expires ?? \PHP_INT_MAX);
226226
$value -= $age;
227227
$this->ageDirectives[$directive] = null !== $this->ageDirectives[$directive] ? min($this->ageDirectives[$directive], $value) : $value;
228228
}

Tests/Controller/ArgumentResolver/RequestPayloadValueResolverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public function testQueryStringParameterTypeMismatch()
420420

421421
try {
422422
$resolver->onKernelControllerArguments($event);
423-
$this->fail(sprintf('Expected "%s" to be thrown.', HttpException::class));
423+
$this->fail(\sprintf('Expected "%s" to be thrown.', HttpException::class));
424424
} catch (HttpException $e) {
425425
$validationFailedException = $e->getPrevious();
426426
$this->assertInstanceOf(ValidationFailedException::class, $validationFailedException);
@@ -514,7 +514,7 @@ public function testRequestInputTypeMismatch()
514514

515515
try {
516516
$resolver->onKernelControllerArguments($event);
517-
$this->fail(sprintf('Expected "%s" to be thrown.', HttpException::class));
517+
$this->fail(\sprintf('Expected "%s" to be thrown.', HttpException::class));
518518
} catch (HttpException $e) {
519519
$validationFailedException = $e->getPrevious();
520520
$this->assertInstanceOf(ValidationFailedException::class, $validationFailedException);

Tests/HttpCache/HttpCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ public function testHitBackendOnlyOnceWhenCacheWasLocked()
714714
$this->request('GET', '/'); // warm the cache
715715

716716
// Use a store that simulates a cache entry being locked upon first attempt
717-
$this->store = new class(sys_get_temp_dir() . '/http_cache') extends Store {
717+
$this->store = new class(sys_get_temp_dir().'/http_cache') extends Store {
718718
private bool $hasLock = false;
719719

720720
public function lock(Request $request): bool

Tests/HttpCache/HttpCacheTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function request($method, $uri = '/', $server = [], $cookies = [], $esi =
115115

116116
$this->kernel->reset();
117117

118-
if (! $this->store) {
118+
if (!$this->store) {
119119
$this->store = $this->createStore();
120120
}
121121

@@ -188,6 +188,6 @@ public static function clearDirectory($directory)
188188

189189
protected function createStore(): Store
190190
{
191-
return new Store(sys_get_temp_dir() . '/http_cache');
191+
return new Store(sys_get_temp_dir().'/http_cache');
192192
}
193193
}

0 commit comments

Comments
 (0)