Index: trunk/tools/code-utils/check-vars.php |
— | — | @@ -322,6 +322,13 @@ |
323 | 323 | if ( $token == ';' ) |
324 | 324 | $this->mFunctionQualifiers = array(); |
325 | 325 | |
| 326 | + if ( $token[0] == T_COMMENT ) { |
| 327 | + if ( substr( $token[1], 0, 2 ) == '/*' && substr( $token[1], 0, 3 ) != '/**' |
| 328 | + && preg_match( '/^\s+\*(?!\/)/m', $token[1] ) && strpos( $token[1], "\$separatorTransformTable = array( ',' => '' )" ) === false ) { |
| 329 | + $this->warning( "Multiline comment with /* in line $token[2]" ); |
| 330 | + } |
| 331 | + } |
| 332 | + |
326 | 333 | if ( $token[0] == T_DOC_COMMENT ) { |
327 | 334 | if ( strpos( $token[1], '@deprecated' ) !== false ) { |
328 | 335 | $this->mFunctionQualifiers[] = self::FUNCTION_DEPRECATED; |