Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Resources/doc/definitions/type-system/enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Episode:
# to deprecate a value, only set the deprecation reason
#deprecationReason: "Just because"
EMPIRE:
value: 5
# We can use a PHP constant to avoid a magic number
value: '@=constant("App\\StarWars\\Movies::MOVIE_EMPIRE")'
description: "Released in 1980."
JEDI: 6 # using the short syntax (JEDI value equal to 6)
FORCEAWAKENS: # in this case FORCEAWAKENS value = FORCEAWAKENS
Expand Down