diff --git a/psalm-baseline.xml b/psalm-baseline.xml index f767b4e4..99bbe5b4 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1095,9 +1095,6 @@ - - - diff --git a/src/AbstractFilter.php b/src/AbstractFilter.php index 6accdef4..efaddfa6 100644 --- a/src/AbstractFilter.php +++ b/src/AbstractFilter.php @@ -4,7 +4,6 @@ namespace Laminas\Filter; -use Laminas\Stdlib\StringUtils; use Traversable; use function array_key_exists; @@ -32,16 +31,6 @@ abstract class AbstractFilter implements FilterInterface */ protected $options = []; - /** - * @deprecated Since 2.1.0 - * - * @return bool - */ - public static function hasPcreUnicodeSupport() - { - return StringUtils::hasPcreUnicodeSupport(); - } - /** * @param TOptions|iterable $options * @return self diff --git a/test/PregReplaceTest.php b/test/PregReplaceTest.php index 345685ed..8c2fd668 100644 --- a/test/PregReplaceTest.php +++ b/test/PregReplaceTest.php @@ -10,8 +10,6 @@ use PHPUnit\Framework\TestCase; use stdClass; -use function preg_match; - class PregReplaceTest extends TestCase { private PregReplaceFilter $filter; @@ -21,12 +19,6 @@ public function setUp(): void $this->filter = new PregReplaceFilter(); } - public function testDetectsPcreUnicodeSupport(): void - { - $enabled = (bool) @preg_match('/\pL/u', 'a'); - self::assertSame($enabled, PregReplaceFilter::hasPcreUnicodeSupport()); - } - public function testPassingPatternToConstructorSetsPattern(): void { $pattern = '#^controller/(?P[a-z_-]+)#';