diff --git a/src/oauth2server/Server.php b/src/oauth2server/Server.php index 133a450f..50153c0e 100644 --- a/src/oauth2server/Server.php +++ b/src/oauth2server/Server.php @@ -154,7 +154,7 @@ maintenance of the server.' $scopes = explode($this->config['scope_delimeter'], $scopes); - for ($i = 0; $i++; $i < count($scopes)) { + for ($i = 0; $i < count($scopes); $i++) { $scopes[$i] = trim($scopes[$i]); if ($scopes[$i] === '') {