Skip to content

Commit

Permalink
Merge branch 'release/0.10.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
pprkut committed Dec 10, 2024
2 parents a975378 + a0c59b8 commit 04fe670
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 04fe670

Please sign in to comment.