Add type hints from DocBlocks

This commit is contained in:
Shift
2023-05-24 21:33:16 +00:00
parent 979b9f704c
commit 4d7d0ed74d
46 changed files with 191 additions and 190 deletions

View File

@@ -11,7 +11,7 @@ trait Uuids
*
* @return void
*/
protected static function bootUuids()
protected static function bootUuids(): void
{
static::creating(function ($model) {
if (empty($model->{$model->getKeyName()}) === true) {
@@ -25,7 +25,7 @@ trait Uuids
*
* @return boolean
*/
public function getIncrementing()
public function getIncrementing(): bool
{
return false;
}
@@ -35,7 +35,7 @@ trait Uuids
*
* @return string
*/
public function getKeyType()
public function getKeyType(): string
{
return 'string';
}