Skip to content

Commit 7538cc1

Browse files
committed
Renumber object sections to make room for property hooks next to properties.
1 parent 329136f commit 7538cc1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

spec.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,9 @@ class ClassName
477477
}
478478
```
479479

480-
### 4.4 Methods and Functions
480+
### 4.4 Property Hooks
481+
482+
### 4.5 Methods and Functions
481483

482484
Visibility MUST be declared on all methods.
483485

@@ -542,7 +544,7 @@ class Point
542544
}
543545
```
544546

545-
### 4.5 Method and Function Parameters
547+
### 4.6 Method and Function Parameters
546548

547549
In the argument list, there MUST NOT be a space before each comma, and there
548550
MUST be one space after each comma.
@@ -660,7 +662,7 @@ public function process(string $algorithm, &...$parts)
660662
}
661663
```
662664

663-
### 4.6 Modifier Keywords
665+
### 4.7 Modifier Keywords
664666

665667
Classes, properties, and methods have numerous keyword modifiers that alter how the
666668
engine and language handles them. When present, they MUST be in the following order:
@@ -701,7 +703,7 @@ readonly class ValueObject
701703
}
702704
```
703705

704-
### 4.7 Method and Function Calls
706+
### 4.8 Method and Function Calls
705707

706708
When making a method or function call, there MUST NOT be a space between the
707709
method or function name and the opening parenthesis, there MUST NOT be a space
@@ -766,7 +768,7 @@ $someInstance
766768
->run();
767769
```
768770

769-
### 4.8 Function Callable References
771+
### 4.9 Function Callable References
770772

771773
A function or method may be referenced in a way that creates a closure out of it, by providing `...` in place of arguments.
772774

0 commit comments

Comments
 (0)