@@ -3124,16 +3124,18 @@ private function _processAnnotation($token, $comment) {
31243124 if ($ pos !== false ) {
31253125 $ suppressedCheck = trim (substr ($ subToken , $ pos + strlen ("@SuppressWarnings " )));
31263126 $ supprArray = explode (' ' , $ suppressedCheck );
3127- $ suppressedCheck = trim ($ supprArray [0 ]);
3128- // Store the suppressed warning in the corresponding array
3129- if ($ token == T_CLASS ) {
3130- $ this ->_classSuppressWarnings [] = $ suppressedCheck ;
3131- } elseif ($ token == T_INTERFACE ) {
3132- $ this ->_interfaceSuppressWarnings [] = $ suppressedCheck ;
3133- } elseif ($ token == T_FUNCTION ) {
3134- $ this ->_functionSuppressWarnings [] = $ suppressedCheck ;
3135- } elseif ($ token == T_FILE ) {
3136- $ this ->_fileSuppressWarnings [] = $ suppressedCheck ;
3127+ foreach ($ supprArray as $ supprCheck ) {
3128+ $ suppressedCheck = trim ($ supprCheck );
3129+ // Store the suppressed warning in the corresponding array
3130+ if ($ token == T_CLASS ) {
3131+ $ this ->_classSuppressWarnings [] = $ suppressedCheck ;
3132+ } elseif ($ token == T_INTERFACE ) {
3133+ $ this ->_interfaceSuppressWarnings [] = $ suppressedCheck ;
3134+ } elseif ($ token == T_FUNCTION ) {
3135+ $ this ->_functionSuppressWarnings [] = $ suppressedCheck ;
3136+ } elseif ($ token == T_FILE ) {
3137+ $ this ->_fileSuppressWarnings [] = $ suppressedCheck ;
3138+ }
31373139 }
31383140 }
31393141
0 commit comments