Skip to content

Commit c830f4d

Browse files
committed
amend cr comments
1 parent 8333c7a commit c830f4d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/Contracts/Relationships/RelationshipCRUD.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public function fetchRelationshipData( $id );
3939
*
4040
* @since 0.1.0
4141
*
42-
* @param mixed $id The ID of the relationship.
43-
* @param array $data The data to insert.
42+
* @param string|int $id The ID of the relationship.
43+
* @param array $data The data to insert.
4444
*/
4545
public function insertRelationshipData( $id, array $data ): void;
4646

@@ -49,8 +49,8 @@ public function insertRelationshipData( $id, array $data ): void;
4949
*
5050
* @since 0.1.0
5151
*
52-
* @param mixed $id The ID of the relationship.
53-
* @param array $data The data to delete.
52+
* @param string|int $id The ID of the relationship.
53+
* @param array $data The data to delete.
5454
*/
5555
public function deleteRelationshipData( $id, $data ): void;
5656
}

src/Relationships/ManyToManyWithPosts.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ public function fetchRelationshipData( $id ) {
188188
*
189189
* @since 0.1.0
190190
*
191-
* @param mixed $id The ID of the relationship.
192-
* @param array $data The data to insert.
191+
* @param string|int $id The ID of the relationship.
192+
* @param array $data The data to insert.
193193
*/
194194
public function insertRelationshipData( $id, array $data = [] ): void {
195195
if ( empty( $data ) ) {
@@ -219,8 +219,8 @@ public function insertRelationshipData( $id, array $data = [] ): void {
219219
*
220220
* @since 0.1.0
221221
*
222-
* @param mixed $id The ID of the relationship.
223-
* @param array $data The data to delete.
222+
* @param string|int $id The ID of the relationship.
223+
* @param array $data The data to delete.
224224
*/
225225
public function deleteRelationshipData( $id, $data ): void {
226226
$this->getTableInterface()::delete_many(

src/SchemaModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ public function delete(): bool {
597597
* @param string $key Relationship name.
598598
* @param mixed $value The relationship value to cache.
599599
*
600-
* @throws InvalidArgumentException If the relationship is not an integer.
600+
* @throws InvalidArgumentException If the relationship is not defined on the model.
601601
*/
602602
public function setCachedRelationship( string $key, $value ): void {
603603
$relationship = $this->getRelationshipCollection()->get( $key );

0 commit comments

Comments
 (0)