@@ -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
482484Visibility 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
547549In the argument list, there MUST NOT be a space before each comma, and there
548550MUST 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
665667Classes, properties, and methods have numerous keyword modifiers that alter how the
666668engine 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
706708When making a method or function call, there MUST NOT be a space between the
707709method 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
771773A 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