Skip to content

Commit ab7ecc9

Browse files
Update system/BaseModel.php
Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
1 parent 3226c45 commit ab7ecc9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

system/BaseModel.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,12 +785,11 @@ public function getInsertID()
785785
* Validates that the primary key values are valid for update/delete/insert operations.
786786
* Throws exception if invalid.
787787
*
788-
* @param int|list<int|string>|RawSql|string $id
789788
* @param bool $allowArray Whether to allow array of IDs (true for update/delete, false for insert)
790-
*
789+
* @phpstan-assert non-zero-int|non-empty-list<int|string>|RawSql|non-falsy-string $id
791790
* @throws InvalidArgumentException
792791
*/
793-
protected function validateID($id, bool $allowArray = true): void
792+
protected function validateID(mixed $id, bool $allowArray = true): void
794793
{
795794
if (is_array($id)) {
796795
// Check if arrays are allowed

0 commit comments

Comments
 (0)