summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-02-11 17:10:36 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-02-11 17:10:36 +0100
commit61ef088f21619a9baf84479086cc37a93e5ca4c8 (patch)
tree766b008ec617f9dc53053ab1a5e3385b3fd971f9 /UPGRADING
parenta302d1161036988fe220ecd8ecd73e6af1a116fc (diff)
downloadphp-git-61ef088f21619a9baf84479086cc37a93e5ca4c8.tar.gz
Add missing braces in UPGRADING example
[ci skip]
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING4
1 files changed, 2 insertions, 2 deletions
diff --git a/UPGRADING b/UPGRADING
index 32c9f847d1..e8ce7d8b40 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -49,7 +49,7 @@ PHP 8.0 UPGRADE NOTES
// Replace
function my_error_handler($err_no, $err_msg, $filename, $linenum) {
- if (error_reporting() == 0)
+ if (error_reporting() == 0) {
return; // Silenced
}
// ...
@@ -57,7 +57,7 @@ PHP 8.0 UPGRADE NOTES
// With
function my_error_handler($err_no, $err_msg, $filename, $linenum) {
- if (error_reporting() & $err_no)
+ if (error_reporting() & $err_no) {
return; // Silenced
}
// ...