Skip to content

Commit 98a1d78

Browse files
committed
Workaround for PHP bug #7873
1 parent db76799 commit 98a1d78

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

example.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@ public function demo(): void
20682068
// "Code Action" to see "Implement 3 missing methods". The generated stubs
20692069
// include correct visibility, parameter types, defaults, and return types.
20702070

2071-
class ImplementMethodsDemo extends ScaffoldingAbstractShape implements ScaffoldingDrawable
2071+
abstract class ImplementMethodsDemo extends ScaffoldingAbstractShape implements ScaffoldingDrawable
20722072
{
20732073
// Try: trigger "Quick Fix" here — you should see
20742074
// "Implement 3 missing methods"
@@ -2473,7 +2473,7 @@ public function identity(mixed $item): mixed
24732473
* @method string render()
24742474
* @property-read string $output
24752475
*/
2476-
interface Renderable extends Stringable
2476+
interface Renderable
24772477
{
24782478
public function format(string $template): string;
24792479
}
@@ -2639,11 +2639,6 @@ public static function make(string $name = ''): static
26392639
}
26402640

26412641
abstract public function toArray(): array;
2642-
2643-
public function __toString(): string
2644-
{
2645-
return $this->name;
2646-
}
26472642
}
26482643

26492644

0 commit comments

Comments
 (0)