Skip to content

Commit

Permalink
drops the s in Morph since it is not used anywhere in the actual classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin committed May 13, 2024
1 parent 9f68249 commit e2726a5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Database/Relations/BelongsTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
class BelongsTo extends BelongsToBase
{
use Concerns\BelongsOrMorphsTo;
use Concerns\BelongsOrMorphTo;
use Concerns\DeferOneOrMany;
use Concerns\DefinedConstraints;

Expand Down
2 changes: 1 addition & 1 deletion src/Database/Relations/BelongsToMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class BelongsToMany extends BelongsToManyBase
{
use Concerns\BelongsOrMorphsToMany;
use Concerns\BelongsOrMorphToMany;
use Concerns\DeferOneOrMany;
use Concerns\DefinedConstraints;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php namespace Winter\Storm\Database\Relations\Concerns;

trait BelongsOrMorphsTo
trait BelongsOrMorphTo
{
use Common;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;

trait BelongsOrMorphsToMany
trait BelongsOrMorphToMany
{
use Common;

Expand Down
2 changes: 1 addition & 1 deletion src/Database/Relations/MorphTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
class MorphTo extends MorphToBase
{
use Concerns\BelongsOrMorphsTo;
use Concerns\BelongsOrMorphTo;
use Concerns\DeferOneOrMany;
use Concerns\DefinedConstraints;

Expand Down
4 changes: 2 additions & 2 deletions src/Database/Relations/MorphToMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
* Morph To Many relation.
*
* As of 1.2.0, this relation has been refactored to extend the Eloquent `MorphToMany` relation,
* to maintain covariance with Laravel. We instead use the `Concerns\BelongsOrMorphsToMany` trait
* to maintain covariance with Laravel. We instead use the `Concerns\BelongsOrMorphToMany` trait
* to provide base `BaseToMany` functionality that includes Winter overrides.
*
* @phpstan-property \Winter\Storm\Database\Model $parent
*/
class MorphToMany extends BaseMorphToMany
{
use Concerns\BelongsOrMorphsToMany;
use Concerns\BelongsOrMorphToMany;
use Concerns\DeferOneOrMany;
use Concerns\DefinedConstraints;

Expand Down

0 comments on commit e2726a5

Please sign in to comment.