Skip to content

Commit e02ce68

Browse files
committed
fix phpstan issues
1 parent 8c82d52 commit e02ce68

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Filament/RelationManagers/FieldsRelationManager.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,7 @@ public static function getPluralModelLabel(): string
270270

271271
protected function getSchemaOptions(): array
272272
{
273-
if (! $this->ownerRecord) {
274-
return [];
275-
}
273+
276274

277275
$options = \Backstage\Fields\Models\Schema::where('model_key', $this->ownerRecord->getKey())
278276
->where('model_type', get_class($this->ownerRecord))

src/Models/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @property \Carbon\Carbon $updated_at
2929
* @property-read \Illuminate\Database\Eloquent\Model|null $model
3030
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Backstage\Fields\Models\Field> $fields
31-
* @property-read \Illuminate\Database\Eloquent\Model|null $parent
31+
* @property-read Schema|null $parent
3232
* @property-read \Illuminate\Database\Eloquent\Collection<int, Schema> $children
3333
*/
3434
class Schema extends Model

0 commit comments

Comments
 (0)