Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,16 @@ die();
$result = foo() ?? exit();
```

The `clone()` function SHOULD always be called with parenthesis, even when the optional `$withProperties` argument is
not provided. For example:
Comment thread
Crell marked this conversation as resolved.

```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.
Expand Down