We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ddd8d9c + 941ec64 commit d34e77aCopy full SHA for d34e77a
spec.md
@@ -824,6 +824,18 @@ $someInstance
824
->run();
825
```
826
827
+The `exit()` and `die()` functions SHOULD always be called with parentheses even if no argument is given to clearly
828
+distinguish them from an access to a constant named `exit` or `die`. For example:
829
+
830
+```php
831
+exit();
832
+exit(1);
833
+exit("Success!");
834
+die();
835
836
+$result = foo() ?? exit();
837
+```
838
839
### 4.8 Function Callable References
840
841
A function or method may be referenced in a way that creates a closure out of it, by providing `...` in place of arguments.
0 commit comments