From 922552e51135f6b41914e7e39cfe395f5be9e387 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Thu, 21 Dec 2023 15:26:23 +0800 Subject: [PATCH] Fix 8.1 tests --- tests/phpunit/FnTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/FnTest.php b/tests/phpunit/FnTest.php index bc8e009..75b70fa 100644 --- a/tests/phpunit/FnTest.php +++ b/tests/phpunit/FnTest.php @@ -60,7 +60,7 @@ function testObjectNotInvoke() $this->assertTrue(false); } catch (PyError $error) { $this->assertStringContainsString('zend_object is not callable', $error->getMessage()); - if (PHP_VERSION_ID > 80100) { + if (PHP_VERSION_ID >= 80200) { $this->assertStringContainsString('Invalid callback', $error->getPrevious()->getMessage()); } $success = false;