Skip to content

Commit 374d0e0

Browse files
committed
refactor: enhance type handling in AbstractFilterElement and DcaHelper for improved clarity
1 parent 0267941 commit 374d0e0

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/FilterElement/AbstractFilterElement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use HeimrichHannot\FlareBundle\Form\FilterFormBuilderInterface;
1717
use HeimrichHannot\FlareBundle\Specification\ConfiguredFilter;
1818
use HeimrichHannot\FlareBundle\Specification\ListSpecification;
19+
use Symfony\Component\Form\FormInterface;
1920

2021
/**
2122
* @phpstan-template FormOptionsShape of array{

src/Util/DcaHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public static function testSQLType(array|string|null $sql, string $expectedType)
151151
}
152152

153153
if ($regex = static::getSqlTypeRegex($expectedType)) {
154-
return \preg_match($regex, $sql);
154+
return (bool) \preg_match($regex, $sql);
155155
}
156156

157157
return false;

0 commit comments

Comments
 (0)