Skip to:
Content

bbPress.org

Ticket #3294: trac-3294-phpcs-fix-silenced-errors-1.patch

File trac-3294-phpcs-fix-silenced-errors-1.patch, 977 bytes (added by jrf, 20 months ago)

Fixes most violations against the WordPress.PHP.NoSilencedErrors.Discouraged error code - part 1

  • src/includes/admin/classes/class-bbp-converter.php

     
    258258                ) );
    259259
    260260                // Get disabled PHP functions (to avoid using them)
    261                 $disabled = explode( ',', @ini_get( 'disable_functions' ) );
     261                $disabled = explode( ',', ini_get( 'disable_functions' ) );
    262262
    263263                // Maybe avoid terminating when the client goes away (if function is not disabled)
    264264                if ( ! in_array( 'ignore_user_abort', $disabled, true ) ) {
    265                         @ignore_user_abort( true );
     265                        ignore_user_abort( true );
    266266                }
    267267
    268268                // Maybe set memory & time limits, and flush style (if function is not disabled)
    269269                if ( ! in_array( 'ini_set', $disabled, true ) ) {
    270270                        foreach ( $r as $key => $value ) {
    271                                 @ini_set( $key, $value );
     271                                ini_set( $key, $value );
    272272                        }
    273273                }
    274274        }