From c9561b1e9b564d3cc25b38122b0451fa3209bafc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20=C5=A0panja?= Date: Wed, 21 Feb 2024 12:03:21 +0100 Subject: [PATCH] Provide both parameters, single param usage is deprecated --- tests/Galach/Tokenizer/TokenExtractorTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Galach/Tokenizer/TokenExtractorTest.php b/tests/Galach/Tokenizer/TokenExtractorTest.php index 554740a..c2ffd68 100644 --- a/tests/Galach/Tokenizer/TokenExtractorTest.php +++ b/tests/Galach/Tokenizer/TokenExtractorTest.php @@ -45,6 +45,7 @@ public function testFullExtractTermTokenThrowsException() $reflectedProperty = $reflectedClass->getProperty('expressionTypeMap'); $reflectedProperty->setAccessible(true); $reflectedProperty->setValue( + null, [ '/(?foobar)/' => Tokenizer::TOKEN_TERM, ] @@ -63,6 +64,7 @@ public function testTextExtractTermTokenThrowsException() $reflectedProperty = $reflectedClass->getProperty('expressionTypeMap'); $reflectedProperty->setAccessible(true); $reflectedProperty->setValue( + null, [ '/(?foobar)/' => Tokenizer::TOKEN_TERM, ]