Skip to content

Commit

Permalink
Use Laravel base noRelation call
Browse files Browse the repository at this point in the history
The Storm version of Relation will be converted to an interface when Laravel-style relations is merged, but it makes sense to change these now anyway as the static method is defined in Laravel and was not overwritten by the Storm wrapper.
  • Loading branch information
bennothommo committed Jul 29, 2024
1 parent c699d38 commit 5198a5c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions modules/backend/formwidgets/Relation.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php namespace Backend\FormWidgets;
<?php

namespace Backend\FormWidgets;

use Db;
use Lang;
use Backend\Classes\FormField;
use Backend\Classes\FormWidgetBase;
use Lang;
use Winter\Storm\Database\Relations\Relation as RelationBase;
use Illuminate\Database\Eloquent\Relations\Relation as RelationBase;
use Winter\Storm\Exception\SystemException;

/**
Expand Down
6 changes: 4 additions & 2 deletions modules/backend/formwidgets/TagList.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php namespace Backend\FormWidgets;
<?php

namespace Backend\FormWidgets;

use Backend\Classes\FormWidgetBase;
use Winter\Storm\Database\Relations\Relation as RelationBase;
use Illuminate\Database\Eloquent\Relations\Relation as RelationBase;

/**
* Tag List Form Widget
Expand Down

0 comments on commit 5198a5c

Please sign in to comment.