Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Jan Kuchař
grifart-enum
Commits
0ec336a8
Commit
0ec336a8
authored
Jan 09, 2019
by
Jan Kuchař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: fix anonymous classes registration
parent
5d77ca35
Pipeline
#14391
passed with stages
in 1 minute and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+2
-2
No files found.
README.md
View file @
0ec336a8
...
...
@@ -195,7 +195,7 @@ abstract class DayOfWeek extends \Grifart\Enum\Enum
protected static function provideInstances(): array
{
return [
self::MONDAY
=> new class
extends DayOfWeek
new class(
self::MONDAY
)
extends DayOfWeek
{
public function nextDay(): DayOfWeek
{
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment