diff --git a/rector.php b/rector.php index e1bad13..b2c1d55 100644 --- a/rector.php +++ b/rector.php @@ -37,6 +37,7 @@ \Rector\DeadCode\Rector\PropertyProperty\RemoveNullPropertyInitializationRector::class, \Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector::class, \Rector\CodeQuality\Rector\If_\CompleteMissingIfElseBracketRector::class, + \Rector\Php80\Rector\FunctionLike\MixedTypeRector::class ]; $rectorConfigurator->skip($skipables); diff --git a/src/LeanOrm/DBConnector.php b/src/LeanOrm/DBConnector.php index c3152e1..2a306ec 100644 --- a/src/LeanOrm/DBConnector.php +++ b/src/LeanOrm/DBConnector.php @@ -77,7 +77,7 @@ class DBConnector { * @var array */ protected static array $db = []; - + //////////// ------------------------------------ ////////////////////////////// //////////// --- END CLASS PROPERTIES TO KEEP --- ////////////////////////////// //////////////////////////////////////////////////////////////////////////////// diff --git a/src/LeanOrm/Model.php b/src/LeanOrm/Model.php index babd35f..90005fd 100644 --- a/src/LeanOrm/Model.php +++ b/src/LeanOrm/Model.php @@ -1700,14 +1700,13 @@ public function deleteMatchingDbTableRows(array $cols_n_vals): int { $this->logQuery($dlt_qry, $dlt_qry_params, __METHOD__, '' . __LINE__); $matching_rows_before_delete = (int) $this->fetchValue($sel_qry_obj); - + $this->db_connector->executeQuery($dlt_qry, $dlt_qry_params, true); $matching_rows_after_delete = (int) $this->fetchValue($sel_qry_obj); - + //number of deleted rows $result = $matching_rows_before_delete - $matching_rows_after_delete; - } // if($cols_n_vals !== []) } // if ( $cols_n_vals !== [] )