From 4e8402ece0f0c77c55b28ea4494830faea6c5637 Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Mon, 22 Jun 2026 16:56:12 -0400 Subject: [PATCH] Fix pdoexception message in php8.0 in windows --- tests/SimplePdoTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/SimplePdoTest.php b/tests/SimplePdoTest.php index eb6d16d..4e97dd7 100644 --- a/tests/SimplePdoTest.php +++ b/tests/SimplePdoTest.php @@ -171,9 +171,9 @@ class SimplePdoTest extends TestCase $this->assertInstanceOf(Collection::class, $row); $this->assertSame('Alice', $row['name']); } catch (PDOException $exception) { - $this->assertSame( - 'Prepare failed: near "RETURNING": syntax error', - $exception->getMessage(), + $this->assertStringContainsString( + 'near "returning": syntax error', + strtolower($exception->getMessage()), ); } }