Commit 0ec336a8 authored by Jan Kuchař's avatar Jan Kuchař

docs: fix anonymous classes registration

parent 5d77ca35
Pipeline #14391 passed with stages
in 1 minute and 27 seconds
...@@ -195,7 +195,7 @@ abstract class DayOfWeek extends \Grifart\Enum\Enum ...@@ -195,7 +195,7 @@ abstract class DayOfWeek extends \Grifart\Enum\Enum
protected static function provideInstances(): array protected static function provideInstances(): array
{ {
return [ return [
self::MONDAY => new class extends DayOfWeek new class(self::MONDAY) extends DayOfWeek
{ {
public function nextDay(): DayOfWeek public function nextDay(): DayOfWeek
{ {
...@@ -203,7 +203,7 @@ abstract class DayOfWeek extends \Grifart\Enum\Enum ...@@ -203,7 +203,7 @@ abstract class DayOfWeek extends \Grifart\Enum\Enum
} }
}, },
self::TUESDAY => new class extends DayOfWeek new class(self::TUESDAY) extends DayOfWeek
{ {
public function nextDay(): DayOfWeek public function nextDay(): DayOfWeek
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment