Skip to content

Commit 5a7b88e

Browse files
committed
Typo fix.
1 parent 314954d commit 5a7b88e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,13 +849,13 @@ For a `set` hook, if the argument name and type do not need to be redefined, the
849849
Property hooks MAY also be defined in constructor-promoted properties. However, they
850850
MUST be only a single hook, with a short-syntax body, defined on a single line as above.
851851
If those criteria are not met, then the promoted property MUST NOT have any hooks defined
852-
inline, and SHOULD instead be defined as normal property and not promoted.
852+
inline.
853853

854854
```php
855855
class Example
856856
{
857857
public function __construct(
858-
public string $name { set => ucfirst($value; }
858+
public string $name { set => ucfirst($value); }
859859
) {}
860860
}
861861
```

0 commit comments

Comments
 (0)