File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55 >
66 <standard >
77 <![CDATA[
8- The error silencing operator (@) should not be used. It suppresses errors instead of handling them properly, making debugging more difficult .
8+ The error silencing operator (@) should not be used. Errors should be addressed through proper checking rather than being silenced .
99
10- As an exception, the operator is allowed for certain functions where errors cannot be prevented through error checking.
10+ As an exception, the operator is allowed for certain functions where warnings cannot be prevented through error checking.
1111 ]]>
1212 </standard >
1313 <code_comparison >
1414 <code title =" Valid: Calling a function without error silencing." >
1515 <![CDATA[
16- $connection = <em></em>ftp_connect ( $ftp_server );
16+ $connection = <em>ftp_connect </em>( $ftp_server );
1717 ]]>
1818 </code >
19- <code title =" Invalid: Using the @ operator to silence errors." >
19+ <code title =" Invalid: Using the @ operator to silence warnings and errors." >
2020 <![CDATA[
2121$connection = <em>@</em>ftp_connect( $ftp_server );
2222 ]]>
You can’t perform that action at this time.
0 commit comments