@@ -477,7 +477,9 @@ class ClassName
477
477
}
478
478
```
479
479
480
- ### 4.4 Methods and Functions
480
+ ### 4.4 Property Hooks
481
+
482
+ ### 4.5 Methods and Functions
481
483
482
484
Visibility MUST be declared on all methods.
483
485
@@ -542,7 +544,7 @@ class Point
542
544
}
543
545
```
544
546
545
- ### 4.5 Method and Function Parameters
547
+ ### 4.6 Method and Function Parameters
546
548
547
549
In the argument list, there MUST NOT be a space before each comma, and there
548
550
MUST be one space after each comma.
@@ -660,7 +662,7 @@ public function process(string $algorithm, &...$parts)
660
662
}
661
663
```
662
664
663
- ### 4.6 Modifier Keywords
665
+ ### 4.7 Modifier Keywords
664
666
665
667
Classes, properties, and methods have numerous keyword modifiers that alter how the
666
668
engine and language handles them. When present, they MUST be in the following order:
@@ -701,7 +703,7 @@ readonly class ValueObject
701
703
}
702
704
```
703
705
704
- ### 4.7 Method and Function Calls
706
+ ### 4.8 Method and Function Calls
705
707
706
708
When making a method or function call, there MUST NOT be a space between the
707
709
method or function name and the opening parenthesis, there MUST NOT be a space
@@ -766,7 +768,7 @@ $someInstance
766
768
->run();
767
769
```
768
770
769
- ### 4.8 Function Callable References
771
+ ### 4.9 Function Callable References
770
772
771
773
A function or method may be referenced in a way that creates a closure out of it, by providing ` ... ` in place of arguments.
772
774
0 commit comments