Skip to content

Commit

Permalink
Merge pull request #5 from AuroraWebSoftware/reverse-connections
Browse files Browse the repository at this point in the history
Reverse connections
  • Loading branch information
emreakay authored Feb 23, 2024
2 parents 7b46611 + 226064b commit 0764c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Contracts/ConnectiveContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/Connective.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
trait Connective
{
public function getId(): int
public function getId(): int|string
{
return (int) $this->getAttribute('id');
}
Expand Down

0 comments on commit 0764c06

Please sign in to comment.