Skip to content

Commit 9ea0f1f

Browse files
committed
fix tests prefer-lowest error
1 parent ac0cbf5 commit 9ea0f1f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

resources/views/bootstrap-4/components/table/row.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@props(['url' => null, 'target' => '_self', 'reordering' => false, 'customAttributes' => []])
22

3-
@if (!$reordering && $attributes->has('wire:sortable.item'))
3+
@if (!$reordering && (method_exists($attributes, 'has') ? $attributes->has('wire:sortable.item') : array_key_exists('wire:sortable.item', $attributes->getAttributes())))
44
@php
55
$attributes = $attributes->filter(fn ($value, $key) => $key !== 'wire:sortable.item');
66
@endphp

resources/views/bootstrap-5/components/table/row.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@props(['url' => null, 'target' => '_self', 'reordering' => false, 'customAttributes' => []])
22

3-
@if (!$reordering && $attributes->has('wire:sortable.item'))
3+
@if (!$reordering && (method_exists($attributes, 'has') ? $attributes->has('wire:sortable.item') : array_key_exists('wire:sortable.item', $attributes->getAttributes())))
44
@php
55
$attributes = $attributes->filter(fn ($value, $key) => $key !== 'wire:sortable.item');
66
@endphp

resources/views/tailwind/components/table/row.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@props(['url' => null, 'target' => '_self', 'reordering' => false, 'customAttributes' => []])
22

3-
@if (!$reordering && $attributes->has('wire:sortable.item'))
3+
@if (!$reordering && (method_exists($attributes, 'has') ? $attributes->has('wire:sortable.item') : array_key_exists('wire:sortable.item', $attributes->getAttributes())))
44
@php
55
$attributes = $attributes->filter(fn ($value, $key) => $key !== 'wire:sortable.item');
66
@endphp

0 commit comments

Comments
 (0)