Skip to content

Commit 019e0bb

Browse files
rodrigoprimojrfnl
andcommitted
Apply suggestions from code review
Co-authored-by: Juliette <663378+jrfnl@users.noreply.github.com>
1 parent 5f150d4 commit 019e0bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WordPress/Docs/PHP/NoSilencedErrorsStandard.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
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
]]>

0 commit comments

Comments
 (0)