Skip to content

Commit e475fd8

Browse files
committed
Merge branch 'develop' into 4.6
2 parents d9aca42 + e5a60f3 commit e475fd8

File tree

7 files changed

+5
-28
lines changed

7 files changed

+5
-28
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"phpunit/phpcov": "^9.0.2 || ^10.0",
2929
"phpunit/phpunit": "^10.5.16 || ^11.2",
3030
"predis/predis": "^1.1 || ^2.3",
31-
"rector/rector": "2.0.5",
31+
"rector/rector": "2.0.6",
3232
"shipmonk/phpstan-baseline-per-identifier": "^2.0"
3333
},
3434
"replace": {

tests/system/CommonFunctionsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public function testCSRFMeta(): void
400400

401401
public function testModelNotExists(): void
402402
{
403-
$this->assertNull(model(UnexsistenceClass::class));
403+
$this->assertNull(model(UnexsistenceClass::class)); // @phpstan-ignore class.notFound
404404
}
405405

406406
public function testModelExistsBasename(): void

tests/system/CommonHelperTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ public function testHelperLoadsAppHelperFirst(): void
142142

143143
// this chunk is not needed really; just added so that IDEs will be happy
144144
if (! function_exists('foo_bar_baz')) {
145-
function foo_bar_baz(): string
145+
function foo_bar_baz(): string // @phpstan-ignore function.inner
146146
{
147147
return __FILE__;
148148
}
149149
}
150150

151-
$this->assertSame($this->dummyHelpers[0], foo_bar_baz()); // @phpstan-ignore-line function.notFound
151+
$this->assertSame($this->dummyHelpers[0], foo_bar_baz()); // @phpstan-ignore function.notFound
152152
}
153153

154154
public function testNamespacedHelperNotFound(): void

tests/system/Test/ControllerTestTraitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testBadController(): void
5353
$logger = new Logger(new LoggerConfig());
5454
$this->withUri('http://example.com')
5555
->withLogger($logger)
56-
->controller(NeverHeardOfIt::class)
56+
->controller(NeverHeardOfIt::class) // @phpstan-ignore class.notFound
5757
->execute('index');
5858
}
5959

utils/phpstan-baseline/class.notFound.neon

-13
This file was deleted.

utils/phpstan-baseline/function.inner.neon

-8
This file was deleted.

utils/phpstan-baseline/loader.neon

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ includes:
22
- argument.type.neon
33
- assign.propertyType.neon
44
- booleanAnd.rightAlwaysTrue.neon
5-
- class.notFound.neon
65
- codeigniter.cacheHandlerInstance.neon
76
- codeigniter.configArgumentInstanceof.neon
87
- codeigniter.frameworkExceptionInstance.neon
@@ -17,7 +16,6 @@ includes:
1716
- empty.property.neon
1817
- expr.resultUnused.neon
1918
- function.alreadyNarrowedType.neon
20-
- function.inner.neon
2119
- generator.valueType.neon
2220
- isset.offset.neon
2321
- isset.property.neon

0 commit comments

Comments
 (0)