Skip to content

Commit

Permalink
Merge branch 'develop' into 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Jan 7, 2025
2 parents d9aca42 + e5a60f3 commit e475fd8
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 28 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"phpunit/phpcov": "^9.0.2 || ^10.0",
"phpunit/phpunit": "^10.5.16 || ^11.2",
"predis/predis": "^1.1 || ^2.3",
"rector/rector": "2.0.5",
"rector/rector": "2.0.6",
"shipmonk/phpstan-baseline-per-identifier": "^2.0"
},
"replace": {
Expand Down
2 changes: 1 addition & 1 deletion tests/system/CommonFunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public function testCSRFMeta(): void

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

public function testModelExistsBasename(): void
Expand Down
4 changes: 2 additions & 2 deletions tests/system/CommonHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ public function testHelperLoadsAppHelperFirst(): void

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

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

public function testNamespacedHelperNotFound(): void
Expand Down
2 changes: 1 addition & 1 deletion tests/system/Test/ControllerTestTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function testBadController(): void
$logger = new Logger(new LoggerConfig());
$this->withUri('http://example.com')
->withLogger($logger)
->controller(NeverHeardOfIt::class)
->controller(NeverHeardOfIt::class) // @phpstan-ignore class.notFound
->execute('index');
}

Expand Down
13 changes: 0 additions & 13 deletions utils/phpstan-baseline/class.notFound.neon

This file was deleted.

8 changes: 0 additions & 8 deletions utils/phpstan-baseline/function.inner.neon

This file was deleted.

2 changes: 0 additions & 2 deletions utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ includes:
- argument.type.neon
- assign.propertyType.neon
- booleanAnd.rightAlwaysTrue.neon
- class.notFound.neon
- codeigniter.cacheHandlerInstance.neon
- codeigniter.configArgumentInstanceof.neon
- codeigniter.frameworkExceptionInstance.neon
Expand All @@ -17,7 +16,6 @@ includes:
- empty.property.neon
- expr.resultUnused.neon
- function.alreadyNarrowedType.neon
- function.inner.neon
- generator.valueType.neon
- isset.offset.neon
- isset.property.neon
Expand Down

0 comments on commit e475fd8

Please sign in to comment.