]> granicus.if.org Git - php/commitdiff
Add missing braces in UPGRADING example
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 11 Feb 2019 16:10:36 +0000 (17:10 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 11 Feb 2019 16:10:36 +0000 (17:10 +0100)
[ci skip]

UPGRADING

index 32c9f847d1f5b182cc33a51aa219f929fadaa73e..e8ce7d8b40482460c60d899911718f165fd4ac84 100644 (file)
--- 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
             }
             // ...