diff --git a/lib/Cake/Model/Datasource/PDOExceptionWithQueryString.php b/lib/Cake/Model/Datasource/PDOExceptionWithQueryString.php
index 79c8e672f..6893899ce 100644
--- a/lib/Cake/Model/Datasource/PDOExceptionWithQueryString.php
+++ b/lib/Cake/Model/Datasource/PDOExceptionWithQueryString.php
@@ -1,9 +1,7 @@
 <?php
 
-declare(strict_types=1);
+class PDOExceptionWithQueryString extends PDOException {
 
-class PDOExceptionWithQueryString extends PDOException
-{
 	public string $queryString = "";
 
 	public function __construct(PDOException $e)