From c078b91987e9a28125a5bcaeff964943fdbc1630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20=C5=A0panja?= Date: Wed, 21 Feb 2024 11:20:46 +0100 Subject: [PATCH 1/4] Fix build badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e917f70..0e17e49 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Query Translator -[![Build Status](https://img.shields.io/github/workflow/status/netgen/query-translator/Tests?style=flat-square)](https://github.com/netgen/query-translator/actions?query=workflow%3ATests) +[![Build Status](https://img.shields.io/github/actions/workflow/status/netgen/query-translator/tests.yml?branch=master&&style=flat-square)](https://github.com/netgen/query-translator/actions?query=workflow%3ATests) [![Code Coverage](https://img.shields.io/codecov/c/github/netgen/query-translator.svg?style=flat-square)](https://codecov.io/gh/netgen/query-translator) [![Downloads](https://img.shields.io/packagist/dt/netgen/query-translator.svg?style=flat-square)](https://packagist.org/packages/netgen/query-translator) [![Latest stable](https://img.shields.io/packagist/v/netgen/query-translator.svg?style=flat-square)](https://packagist.org/packages/netgen/query-translator) From 1069a296a004e48e1cee00164444a556d20dd86a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20=C5=A0panja?= Date: Wed, 21 Feb 2024 11:21:09 +0100 Subject: [PATCH 2/4] Add PHP 8.2 and 8.3 to test matrix --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1b91e5a..8e0a0a3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,6 +19,8 @@ jobs: - php: '7.4' - php: '8.0' - php: '8.1' + - php: '8.2' + - php: '8.3' steps: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v2 From 7b554eca1cb260555a049167ec26172794dc7d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20=C5=A0panja?= Date: Wed, 21 Feb 2024 11:45:00 +0100 Subject: [PATCH 3/4] Limit PHPUnit to lower than 10 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1b2606c..49e93a5 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "php": "^7.0||^8.0" }, "require-dev": { - "phpunit/phpunit": "*", + "phpunit/phpunit": "<10", "symfony/phpunit-bridge": "*", "friendsofphp/php-cs-fixer": "^2.11" }, From c99db0be7333aa69268b78da961036ad749793d4 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 4/4] 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, ]