Skip to content

Commit

Permalink
Configuration: Ignore phpstan false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
pprkut committed Dec 10, 2024
1 parent 38f946f commit a0c59b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Lunr/Core/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ public function load_file(string $identifier): void

include_once 'conf.' . $identifier . '.inc.php';

/**
* Since we're including a config file here, it's conceivable that $config
* might not stay an array. Ignore the phpstan check for that.
*
* @phpstan-ignore function.alreadyNarrowedType
*/
if (!is_array($config))
{
$config = [];
Expand Down

0 comments on commit a0c59b8

Please sign in to comment.