| @@ -82,10 +82,13 @@ | ||
| 82 | 82 | ) ) { |
| 83 | 83 | unset( $tokens[ $k ] ); |
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | - $tokens = array_filter( $tokens ); | |
| 87 | - if ( empty( $tokens ) ) { | |
| 86 | + $tokens = array_filter( | |
| 87 | + $tokens, | |
| 88 | + static fn( array $token ): bool => array() !== $token | |
| 89 | + ); | |
| 90 | + if ( array() === $tokens ) { | |
| 88 | 91 | // This mean the catch is comment, do nothing. |
| 89 | 92 | return false; |
| 90 | 93 | } |
| 91 | 94 | unset( $catch['text'] ); |