Skip to content

Commit 1e4076d

Browse files
author
Dan Cryer
committed
Actually fixing the namespace problem.
1 parent 9b5d923 commit 1e4076d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PhpDocblockChecker/FileProcessor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected function processStatements(array $statements, $prefix = '')
103103
$type = $uses[$type];
104104
}
105105

106-
$type = substr($type, 0, 1) == '/' ? substr($type, 1) : $type;
106+
$type = substr($type, 0, 1) == '\\' ? substr($type, 1) : $type;
107107

108108

109109
$thisMethod = [
@@ -127,7 +127,7 @@ protected function processStatements(array $statements, $prefix = '')
127127
$type = $uses[$type];
128128
}
129129

130-
$type = substr($type, 0, 1) == '/' ? substr($type, 1) : $type;
130+
$type = substr($type, 0, 1) == '\\' ? substr($type, 1) : $type;
131131

132132
$thisMethod['params']['$'.$param->name] = $type;
133133
}
@@ -183,7 +183,7 @@ protected function processDocblock($text, array $uses = [])
183183
$type = $uses[$type];
184184
}
185185

186-
$type = substr($type, 0, 1) == '/' ? substr($type, 1) : $type;
186+
$type = substr($type, 0, 1) == '\\' ? substr($type, 1) : $type;
187187

188188
$rtn['params'][$param['var']] = $type;
189189
}
@@ -202,7 +202,7 @@ protected function processDocblock($text, array $uses = [])
202202
$type = $uses[$type];
203203
}
204204

205-
$type = substr($type, 0, 1) == '/' ? substr($type, 1) : $type;
205+
$type = substr($type, 0, 1) == '\\' ? substr($type, 1) : $type;
206206

207207
$rtn['return'] = $type;
208208
}

0 commit comments

Comments
 (0)