Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b20a40 commit 0c77083Copy full SHA for 0c77083
src/Symfony/Component/Routing/Loader/AnnotationFileLoader.php
@@ -102,13 +102,13 @@ protected function findClass(string $file)
102
for ($i = 0; isset($tokens[$i]); ++$i) {
103
$token = $tokens[$i];
104
if (80000 <= \PHP_VERSION_ID) {
105
- if (\T_ATTRIBUTE === ($token[0]??0) || ($openBrackets > 0 && $token === '[')) {
106
- $openBrackets++;
+ if (\T_ATTRIBUTE === ($token[0] ?? 0) || ($openBrackets > 0 && '[' === $token)) {
+ ++$openBrackets;
107
}
108
- if($openBrackets > 0 && $token === ']'){
109
- $openBrackets--;
+ if ($openBrackets > 0 && ']' === $token) {
+ --$openBrackets;
110
111
- if($openBrackets > 0){
+ if ($openBrackets > 0) {
112
continue;
113
114
0 commit comments