Skip to content
Prev Previous commit
Fix unit tests
  • Loading branch information
d-buchmann committed Oct 7, 2025
commit 6fd2bb9cf3e20af885a53ceedff6ed05f66b872f
2 changes: 1 addition & 1 deletion src/Services/Formatters/SIFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class SIFormatter
*/
public function getMagnitude(float $value): int
{
return (int) floor(log10(abs($value)));
return intval(floor(log10(abs($value))));
}

/**
Expand Down
5 changes: 5 additions & 0 deletions src/Services/Tools/TagFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public function __construct(protected EntityManagerInterface $em)
public function searchTags(string $keyword, array $options = []): array
{
$results = [];

$resolver = new OptionsResolver();
$this->configureOptions($resolver);
$options = $resolver->resolve($options);

$keyword_regex = '/^'.preg_quote($keyword, '/').'/';
$possible_tags = $this->listTags($keyword, $options);

Expand Down
Loading