From a3bf2138edaf6f612b31621899826f1cde31064c Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Thu, 8 Jan 2026 02:05:31 -0600 Subject: [PATCH] Corrects AbstractSql::$subject visibility Improves typing for $processInfo for concrete classes - specifically a reported phpstan missing paramPrefix issue Signed-off-by: Joey Smith Signed-off-by: Joey Smith --- src/Sql/AbstractSql.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Sql/AbstractSql.php b/src/Sql/AbstractSql.php index bbd1ed6d..d7170b30 100644 --- a/src/Sql/AbstractSql.php +++ b/src/Sql/AbstractSql.php @@ -36,7 +36,7 @@ abstract class AbstractSql implements SqlInterface { - public SqlInterface|PreparableSqlInterface|null $subject = null; + protected SqlInterface|PreparableSqlInterface|null $subject = null; /** * Specifications for Sql String generation @@ -45,6 +45,11 @@ abstract class AbstractSql implements SqlInterface */ protected array $specifications = []; + /** + * Information used during processing + * + * @var array{paramPrefix: string, subselectCount: int} + */ protected array $processInfo = ['paramPrefix' => '', 'subselectCount' => 0]; protected array $instanceParameterIndex = [];