Skip to content

Commit 379154e

Browse files
committed
chore: re-run rector
1 parent 16da41d commit 379154e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

system/Router/RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,7 @@ private function checkHostname($hostname): bool
15741574

15751575
// Has multiple hostnames
15761576
if (is_array($hostname)) {
1577-
$hostnameLower = array_map('strtolower', $hostname);
1577+
$hostnameLower = array_map(strtolower(...), $hostname);
15781578

15791579
return in_array(strtolower($this->httpHost), $hostnameLower, true);
15801580
}

tests/system/AutoReview/FrameworkCodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testEachTestClassHasCorrectGroupAttributeName(string $class): vo
6262
$unrecognizedGroups = array_diff(
6363
array_map(static function (ReflectionAttribute $attribute): string {
6464
$groupAttribute = $attribute->newInstance();
65-
assert($groupAttribute instanceof Group);
65+
$this->assertInstanceOf(Group::class, $groupAttribute);
6666

6767
return $groupAttribute->name();
6868
}, $attributes),

tests/system/CommonSingleServiceTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testSingleServiceWithNoParamsSupplied(string $service): void
3737
$service1 = single_service($service); // @phpstan-ignore codeigniter.unknownServiceMethod
3838
$service2 = single_service($service); // @phpstan-ignore codeigniter.unknownServiceMethod
3939

40-
assert($service1 !== null);
40+
$this->assertNotNull($service1);
4141

4242
$this->assertInstanceOf($service1::class, $service2);
4343
$this->assertNotSame($service1, $service2);
@@ -65,7 +65,7 @@ public function testSingleServiceWithAtLeastOneParamSupplied(string $service): v
6565
$service1 = single_service($service, ...$params); // @phpstan-ignore codeigniter.unknownServiceMethod
6666
$service2 = single_service($service, ...$params); // @phpstan-ignore codeigniter.unknownServiceMethod
6767

68-
assert($service1 !== null);
68+
$this->assertNotNull($service1);
6969

7070
$this->assertInstanceOf($service1::class, $service2);
7171
$this->assertNotSame($service1, $service2);
@@ -120,8 +120,8 @@ public function testSingleServiceWithAllParamsSupplied(): void
120120
$cache1 = single_service('cache', null, true);
121121
$cache2 = single_service('cache', null, true);
122122

123-
assert($cache1 !== null);
124-
assert($cache2 !== null);
123+
$this->assertNotNull($cache1);
124+
$this->assertNotNull($cache2);
125125

126126
// Assert that even passing true as last param this will
127127
// not create a shared instance.

0 commit comments

Comments
 (0)