Skip to content

Commit

Permalink
Merge pull request #28974 from staudenmeir/static
Browse files Browse the repository at this point in the history
[5.8] Replace self:: with static::
  • Loading branch information
taylorotwell authored Jun 27, 2019
2 parents db7b93b + 54fc65f commit 0e7f0cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Relations/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ protected static function buildMorphMapFromModels(array $models = null)
*/
public static function getMorphedModel($alias)
{
return self::$morphMap[$alias] ?? null;
return static::$morphMap[$alias] ?? null;
}

/**
Expand Down

0 comments on commit 0e7f0cf

Please sign in to comment.