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

Commit

Permalink
Make $ownerKey nullable.
Browse files Browse the repository at this point in the history
  • Loading branch information
kadivadavidak authored Mar 16, 2018
1 parent ef7e412 commit 980c83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ardent/Ardent.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public function belongsTo($related, $foreignKey = NULL, $otherKey = NULL, $relat
* @param string $id
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function morphTo($name = null, $type = null, $id = null, $ownerKey) {
public function morphTo($name = null, $type = null, $id = null, $ownerKey = null) {
// If no name is provided, we will use the backtrace to get the function name
// since that is most likely the name of the polymorphic interface. We can
// use that to get both the class and foreign key that will be utilized.
Expand Down

0 comments on commit 980c83b

Please sign in to comment.