Support » Plugin: PHP Compatibility Checker » Still FALSE POSITIVE: Using ‘break’ outside of a loop

  • Here’s another false report:

    /wp-content/plugins/shortcodes-ultimate/inc/core/tools.php
    681 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0

    foreach ( array( ‘media’, ‘posts’, ‘category’, ‘taxonomy’ ) as $type )
    if ( strpos( trim( $args[‘source’] ), $type . ‘:’ ) === 0 ) {
    $args[‘source’] = array(‘type’ => $type,’val’ => (string) trim( str_replace( array( $type . ‘:’, ‘ ‘ ), ”, $args[‘source’] ), ‘,’ ) );
    break;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Still FALSE POSITIVE: Using ‘break’ outside of a loop’ is closed to new replies.