Skip to content

Commit ee67ec9

Browse files
Automated changes from GitHub Actions
1 parent 30297e4 commit ee67ec9

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

published/short-class.ptxt

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
===== Introduction =====
1010

11-
This RFC proposes a new short syntax for class/enum definitions in PHP and the ability to embed these classes within other classes.
11+
This RFC proposes a new short syntax for class definitions in PHP and the ability to embed these classes within other classes.
1212

1313
===== Proposal =====
1414

@@ -66,24 +66,6 @@ Attributes may also be used with short classes:
6666
class Password(#[SensitiveParameter] string $password);
6767
</code>
6868

69-
==== Short enums ====
70-
71-
Enums are a common pattern in PHP applications and are usually simple data structures that hold a set of constants. This RFC includes a proposal for short enums:
72-
73-
<code php>
74-
enum Color(Red, Green, Blue);
75-
</code>
76-
77-
This is equivalent to the following full enum definition:
78-
79-
<code php>
80-
enum Color {
81-
case Red;
82-
case Green;
83-
case Blue;
84-
}
85-
</code>
86-
8769
==== Inner Classes ====
8870

8971
Inner classes are classes that are defined within another class.

0 commit comments

Comments
 (0)