Skip to content

Commit fc03724

Browse files
committed
Fixing more type hints
1 parent c830f4d commit fc03724

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Contracts/Relationships/RelationshipCRUD.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface RelationshipCRUD {
1919
*
2020
* @since 0.1.0
2121
*
22-
* @param mixed $id The ID of the relationship.
22+
* @param string|int $id The ID of the relationship.
2323
*/
2424
public function deleteAllRelationshipData( $id ): void;
2525

@@ -28,7 +28,7 @@ public function deleteAllRelationshipData( $id ): void;
2828
*
2929
* @since 0.1.0
3030
*
31-
* @param mixed $id The ID of the relationship.
31+
* @param string|int $id The ID of the relationship.
3232
*
3333
* @return ModelContract|ModelContract[]|null
3434
*/

src/Relationships/ManyToManyWithPosts.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function getTableInterface(): string {
151151
*
152152
* @since 0.1.0
153153
*
154-
* @param mixed $id The ID of the relationship.
154+
* @param string|int $id The ID of the relationship.
155155
*/
156156
public function deleteAllRelationshipData( $id ): void {
157157
$this->getTableInterface()::delete( $id, $this->getThisEntityColumn() );
@@ -162,7 +162,9 @@ public function deleteAllRelationshipData( $id ): void {
162162
*
163163
* @since 0.1.0
164164
*
165-
* @param mixed $id The ID of the relationship.
165+
* @param string|int $id The ID of the relationship.
166+
*
167+
* @return array
166168
*/
167169
public function fetchRelationshipData( $id ) {
168170
$table = $this->getTableInterface();

0 commit comments

Comments
 (0)