diff --git a/src/Illuminate/Database/Eloquent/Model.php b/src/Illuminate/Database/Eloquent/Model.php index 7afa5993341..b833e6d6232 100644 --- a/src/Illuminate/Database/Eloquent/Model.php +++ b/src/Illuminate/Database/Eloquent/Model.php @@ -1985,20 +1985,16 @@ public function setIncrementing($value) /** * Get the value of the model's primary key. - * - * @return mixed */ - public function getKey() + public function getKey(): int|string { return $this->getAttribute($this->getKeyName()); } /** * Get the queueable identity for the entity. - * - * @return mixed */ - public function getQueueableId() + public function getQueueableId(): int|string { return $this->getKey(); }