diff --git a/src/Contracts/ConnectiveContract.php b/src/Contracts/ConnectiveContract.php index 0c98ac6..4bad3b6 100644 --- a/src/Contracts/ConnectiveContract.php +++ b/src/Contracts/ConnectiveContract.php @@ -16,7 +16,7 @@ interface ConnectiveContract */ public static function supportedConnectionTypes(): array; - public function getId(): int; + public function getId(): int|string; /** * Connect and return the connection model diff --git a/src/Traits/Connective.php b/src/Traits/Connective.php index a7f17b7..6fd306a 100644 --- a/src/Traits/Connective.php +++ b/src/Traits/Connective.php @@ -15,7 +15,7 @@ */ trait Connective { - public function getId(): int + public function getId(): int|string { return (int) $this->getAttribute('id'); }