Skip to content

Commit

Permalink
refactor: Fix phpstan function.inner
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Jan 5, 2025
1 parent 61741c5 commit d4ea344
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
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
8 changes: 0 additions & 8 deletions utils/phpstan-baseline/function.inner.neon

This file was deleted.

2 changes: 1 addition & 1 deletion utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ includes:
- empty.property.neon
- expr.resultUnused.neon
- function.alreadyNarrowedType.neon
- function.inner.neon
- generator.returnType.neon
- generator.valueType.neon
- isset.offset.neon
- isset.property.neon
Expand Down

0 comments on commit d4ea344

Please sign in to comment.