We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3226c45 commit ab7ecc9Copy full SHA for ab7ecc9
1 file changed
system/BaseModel.php
@@ -785,12 +785,11 @@ public function getInsertID()
785
* Validates that the primary key values are valid for update/delete/insert operations.
786
* Throws exception if invalid.
787
*
788
- * @param int|list<int|string>|RawSql|string $id
789
* @param bool $allowArray Whether to allow array of IDs (true for update/delete, false for insert)
790
- *
+ * @phpstan-assert non-zero-int|non-empty-list<int|string>|RawSql|non-falsy-string $id
791
* @throws InvalidArgumentException
792
*/
793
- protected function validateID($id, bool $allowArray = true): void
+ protected function validateID(mixed $id, bool $allowArray = true): void
794
{
795
if (is_array($id)) {
796
// Check if arrays are allowed
0 commit comments