Skip to content

Commit ee7b496

Browse files
committed
Remove #[Override]
1 parent c58c603 commit ee7b496

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

tests/views/components/another-class-component.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
namespace tests\views\components;
66

77
use flight\template\Component;
8-
use Override;
98

109
if (!class_exists('AnotherClassComponent')) {
1110
class AnotherClassComponent extends Component
1211
{
13-
#[Override]
1412
public function html(): string
1513
{
1614
return 'another-class-component';

tests/views/components/my-class-component-that-extends-another-class-component.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
return new class extends AnotherClassComponent
1010
{
11-
#[Override]
1211
public function html(): string
1312
{
1413
return parent::html() . ' extended by my-class-component-that-extends-another-class-component';

tests/views/components/my-class-component-with-scripts.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66

77
return new class extends Component
88
{
9-
#[Override]
109
public function html(): string
1110
{
1211
return 'my-class-component-with-scripts';
1312
}
1413

15-
#[Override]
1614
public function js(): string
1715
{
1816
return <<<'js'

0 commit comments

Comments
 (0)