Skip to content

Commit

Permalink
Configuration: Narrow the return type of key()
Browse files Browse the repository at this point in the history
  • Loading branch information
pprkut committed Jan 24, 2025
1 parent 2376447 commit 390097b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
php-tests:
uses: lunr-php/actions-templates/.github/workflows/php-composer.yml@master
with:
phpstan-level: 7
phpstan-level: 10
allow-style-failures: false
allow-phpstan-failures: false
codestyle-branch: '0.10.1'
Expand Down
4 changes: 2 additions & 2 deletions src/Lunr/Core/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ public function current(): mixed
*
* (Inherited from Iterator)
*
* @return scalar Scalar on success, NULL on failure
* @return array-key|null Value on success, NULL on failure
*/
public function key(): mixed
public function key(): int|string|null
{
return key($this->config);
}
Expand Down

0 comments on commit 390097b

Please sign in to comment.