Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 980c83b

Browse files
Make $ownerKey nullable.
1 parent ef7e412 commit 980c83b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ardent/Ardent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ public function belongsTo($related, $foreignKey = NULL, $otherKey = NULL, $relat
448448
* @param string $id
449449
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
450450
*/
451-
public function morphTo($name = null, $type = null, $id = null, $ownerKey) {
451+
public function morphTo($name = null, $type = null, $id = null, $ownerKey = null) {
452452
// If no name is provided, we will use the backtrace to get the function name
453453
// since that is most likely the name of the polymorphic interface. We can
454454
// use that to get both the class and foreign key that will be utilized.

0 commit comments

Comments
 (0)