Skip to content

Commit cf2afed

Browse files
committed
Apply Rector
1 parent 7ce514c commit cf2afed

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ parameters:
1010
- src/Config/Routes.php
1111
- src/Views/*
1212
ignoreErrors:
13-
- '#Call to an undefined static method Config\\Services::[A-Za-z]+\(\)#'
1413
universalObjectCratesClasses:
1514
- CodeIgniter\Entity
1615
- CodeIgniter\Entity\Entity

src/FrontendBundle.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ abstract class FrontendBundle extends Bundle
1717
{
1818
/**
1919
* The base directory, i.e. Assets directory + vendor path
20-
*
21-
* @var string|null
2220
*/
23-
private static $base;
21+
private static ?string $base = null;
2422

2523
/**
2624
* Returns the base path according to the configurations.

tests/FrontendPublisherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function testPublisherThrowsWithoutPath()
1616
$this->expectException('DomainException');
1717
$this->expectExceptionMessage('Invalid relative destination $path');
1818

19-
$publisher = new class () extends FrontendPublisher {
19+
new class () extends FrontendPublisher {
2020
};
2121
}
2222

0 commit comments

Comments
 (0)