Skip to content

Commit

Permalink
Fix warnings about continue inside switch on PHP 7.3 (ezsystems#1387)
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric authored and andrerom committed Oct 10, 2018
1 parent b494b89 commit 929df6b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion kernel/classes/ezcollaborationgroup.php
Expand Up @@ -226,7 +226,7 @@ static function subTree( $parameters = array() )
default:
{
eZDebug::writeWarning( 'Unknown sort field: ' . $sortField, __METHOD__ );
continue;
continue 2;
}
}
$sortOrder = true; // true is ascending
Expand Down
2 changes: 1 addition & 1 deletion kernel/classes/ezcollaborationitem.php
Expand Up @@ -389,7 +389,7 @@ static function fetchListTool( $parameters = array(), $asCount )
default:
{
eZDebug::writeWarning( 'Unknown sort field: ' . $sortField, __METHOD__ );
continue;
continue 2;
}
}
$sortOrder = true; // true is ascending
Expand Down
2 changes: 1 addition & 1 deletion kernel/classes/ezcontentobjecttreenode.php
Expand Up @@ -731,7 +731,7 @@ static function createSortingSQLStrings( $sortList, $treeTableName = 'ezcontento
else
{
eZDebug::writeWarning( 'Unknown sort field: ' . $sortField, __METHOD__ );
continue;
continue 2;
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions kernel/classes/ezsiteaccess.php
Expand Up @@ -157,7 +157,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php
return $access;
}
else
continue;
continue 2;
} break;
case 'port':
{
Expand All @@ -168,7 +168,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php
return $access;
}
else
continue;
continue 2;
} break;
case 'uri':
{
Expand Down Expand Up @@ -222,7 +222,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php
$match_num = $ini->variable( 'SiteAccessSettings', 'URIMatchRegexpItem' );
}
else
continue;
continue 2;
} break;
case 'host':
{
Expand Down Expand Up @@ -264,7 +264,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php
$match_num = $ini->variable( 'SiteAccessSettings', 'HostMatchRegexpItem' );
}
else
continue;
continue 2;
} break;
case 'host_uri':
{
Expand Down Expand Up @@ -353,7 +353,7 @@ public static function match( eZURI $uri, $host, $port = 80, $file = '/index.php
$match_num = $ini->variable( 'SiteAccessSettings', 'IndexMatchRegexpItem' );
}
else
continue;
continue 2;
} break;
default:
{
Expand Down
2 changes: 0 additions & 2 deletions kernel/package/ezpackagefunctioncollection.php
Expand Up @@ -67,7 +67,6 @@ function fetchList( $filterArray = false, $offset, $limit, $repositoryID )
default:
{
eZDebug::writeWarning( 'Unknown package filter name: ' . $filterName );
continue;
}
}
}
Expand Down Expand Up @@ -158,7 +157,6 @@ function fetchDependentPackageList( $packageName, $filterArray = false, $reposit
default:
{
eZDebug::writeWarning( 'Unknown package filter name: ' . $filterName );
continue;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion kernel/search/plugins/ezsearchengine/ezsearchengine.php
Expand Up @@ -1206,7 +1206,7 @@ function buildSortSQL( $sortArray )
default:
{
eZDebug::writeWarning( 'Unknown sort field: ' . $sortField, __METHOD__ );
continue;
continue 2;
}
}
$sortOrder = true; // true is ascending
Expand Down
3 changes: 1 addition & 2 deletions lib/ezutils/classes/ezmoduleoperationinfo.php
Expand Up @@ -455,8 +455,7 @@ function executeBody( $includeFile, $className, $bodyStructure,
if ( !$this->UseTriggers )
{
$bodyReturnValue['status'] = eZModuleOperationInfo::STATUS_CONTINUE;
continue;

continue 2;
}

$triggerName = $body['name'];
Expand Down

0 comments on commit 929df6b

Please sign in to comment.