@@ -532,9 +532,8 @@ abstract protected function doOnlyDeleted();
532
532
* Compiles a replace and runs the query.
533
533
* This method works only with dbCalls.
534
534
*
535
- * @param array|null $row Row data
536
- * @phpstan-param row_array|null $row
537
- * @param bool $returnSQL Set to true to return Query String
535
+ * @param row_array|null $row Row data
536
+ * @param bool $returnSQL Set to true to return Query String
538
537
*
539
538
* @return BaseResult|false|Query|string
540
539
*/
@@ -552,8 +551,7 @@ abstract protected function doErrors();
552
551
* Public getter to return the id value using the idValue() method.
553
552
* For example with SQL this will return $data->$this->primaryKey.
554
553
*
555
- * @param array|object $row Row data
556
- * @phpstan-param row_array|object $row
554
+ * @param object|row_array $row Row data
557
555
*
558
556
* @return array|int|string|null
559
557
*/
@@ -737,8 +735,7 @@ public function first()
737
735
* you must ensure that the class will provide access to the class
738
736
* variables, even if through a magic method.
739
737
*
740
- * @param array|object $row Row data
741
- * @phpstan-param row_array|object $row
738
+ * @param object|row_array $row Row data
742
739
*
743
740
* @throws ReflectionException
744
741
*/
@@ -789,9 +786,8 @@ public function getInsertID()
789
786
* Inserts data into the database. If an object is provided,
790
787
* it will attempt to convert it to an array.
791
788
*
792
- * @param array|object|null $row Row data
793
- * @phpstan-param row_array|object|null $row
794
- * @param bool $returnID Whether insert ID should be returned or not.
789
+ * @param object|row_array|null $row Row data
790
+ * @param bool $returnID Whether insert ID should be returned or not.
795
791
*
796
792
* @return ($returnID is true ? false|int|string : bool)
797
793
*
@@ -866,8 +862,8 @@ public function insert($row = null, bool $returnID = true)
866
862
/**
867
863
* Set datetime to created field.
868
864
*
869
- * @phpstan- param row_array $row
870
- * @param int|string $date timestamp or datetime string
865
+ * @param row_array $row
866
+ * @param int|string $date timestamp or datetime string
871
867
*/
872
868
protected function setCreatedField (array $ row , $ date ): array
873
869
{
@@ -881,8 +877,8 @@ protected function setCreatedField(array $row, $date): array
881
877
/**
882
878
* Set datetime to updated field.
883
879
*
884
- * @phpstan- param row_array $row
885
- * @param int|string $date timestamp or datetime string
880
+ * @param row_array $row
881
+ * @param int|string $date timestamp or datetime string
886
882
*/
887
883
protected function setUpdatedField (array $ row , $ date ): array
888
884
{
@@ -896,11 +892,10 @@ protected function setUpdatedField(array $row, $date): array
896
892
/**
897
893
* Compiles batch insert runs the queries, validating each row prior.
898
894
*
899
- * @param list<array|object>|null $set an associative array of insert values
900
- * @phpstan-param list<row_array|object>|null $set
901
- * @param bool|null $escape Whether to escape values
902
- * @param int $batchSize The size of the batch to run
903
- * @param bool $testing True means only number of records is returned, false will execute the query
895
+ * @param list<object|row_array>|null $set an associative array of insert values
896
+ * @param bool|null $escape Whether to escape values
897
+ * @param int $batchSize The size of the batch to run
898
+ * @param bool $testing True means only number of records is returned, false will execute the query
904
899
*
905
900
* @return bool|int Number of rows inserted or FALSE on failure
906
901
*
@@ -1042,11 +1037,10 @@ public function update($id = null, $row = null): bool
1042
1037
/**
1043
1038
* Compiles an update and runs the query.
1044
1039
*
1045
- * @param list<array|object>|null $set an associative array of insert values
1046
- * @phpstan-param list<row_array|object>|null $set
1047
- * @param string|null $index The where key
1048
- * @param int $batchSize The size of the batch to run
1049
- * @param bool $returnSQL True means SQL is returned, false will execute the query
1040
+ * @param list<object|row_array>|null $set an associative array of insert values
1041
+ * @param string|null $index The where key
1042
+ * @param int $batchSize The size of the batch to run
1043
+ * @param bool $returnSQL True means SQL is returned, false will execute the query
1050
1044
*
1051
1045
* @return false|int|list<string> Number of rows affected or FALSE on failure, SQL array when testMode
1052
1046
*
@@ -1125,8 +1119,8 @@ public function updateBatch(?array $set = null, ?string $index = null, int $batc
1125
1119
/**
1126
1120
* Deletes a single record from the database where $id matches.
1127
1121
*
1128
- * @param array| int|string|null $id The rows primary key(s)
1129
- * @param bool $purge Allows overriding the soft deletes setting.
1122
+ * @param int|list< int|string> |string|null $id The rows primary key(s)
1123
+ * @param bool $purge Allows overriding the soft deletes setting.
1130
1124
*
1131
1125
* @return BaseResult|bool
1132
1126
*
@@ -1214,9 +1208,8 @@ public function onlyDeleted()
1214
1208
/**
1215
1209
* Compiles a replace and runs the query.
1216
1210
*
1217
- * @param array|null $row Row data
1218
- * @phpstan-param row_array|null $row
1219
- * @param bool $returnSQL Set to true to return Query String
1211
+ * @param row_array|null $row Row data
1212
+ * @param bool $returnSQL Set to true to return Query String
1220
1213
*
1221
1214
* @return BaseResult|false|Query|string
1222
1215
*/
@@ -1810,9 +1803,8 @@ protected function objectToRawArray($object, bool $onlyChanged = true, bool $rec
1810
1803
/**
1811
1804
* Transform data to array.
1812
1805
*
1813
- * @param array|object|null $row Row data
1814
- * @phpstan-param row_array|object|null $row
1815
- * @param string $type Type of data (insert|update)
1806
+ * @param object|row_array|null $row Row data
1807
+ * @param string $type Type of data (insert|update)
1816
1808
*
1817
1809
* @throws DataException
1818
1810
* @throws InvalidArgumentException
0 commit comments