diff --git a/spec.md b/spec.md index ede3ef0..2c6f223 100644 --- a/spec.md +++ b/spec.md @@ -853,6 +853,16 @@ die(); $result = foo() ?? exit(); ``` +The `clone` language construct MUST always be used with parenthesis, even when the optional `$withProperties` argument is +not provided. For example: + +```php +$b = clone($a); +$b = clone($a, [ + 'foo' => 'bar', +]); +``` + ### 4.8 Function Callable References A function or method may be referenced in a way that creates a closure out of it, by providing `...` in place of arguments.