fix typing

This commit is contained in:
2023-05-08 12:36:11 +10:00
parent 4accb60a24
commit a352c21198

View File

@@ -25,7 +25,7 @@ class Uniqueish implements Rule
/** /**
* The ID of the record to be ignored. * The ID of the record to be ignored.
* *
* @var integer|null * @var mixed
*/ */
protected $ignoreId; protected $ignoreId;
@@ -46,10 +46,10 @@ class Uniqueish implements Rule
/** /**
* Set the ID of the record to be ignored. * Set the ID of the record to be ignored.
* *
* @param integer $id The ID to ignore. * @param mixed $id The ID to ignore.
* @return $this * @return $this
*/ */
public function ignore(int $id) public function ignore(mixed $id)
{ {
$this->ignoreId = $id; $this->ignoreId = $id;
return $this; return $this;