Skip to content

Commit 9f08c53

Browse files
committed
added type checking comparison
1 parent 8c7de0e commit 9f08c53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/helpers/MetaFormats/AnnotationConversion/StandardAnnotationConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private static function convertEndpointAnnotations(array $endpoints, array $line
119119
$paramLineRegex = "/\\$\\b" . $param->name . "\\b/";
120120
$lineIdx = -1;
121121
for ($i = 0; $i < count($annotationLines); $i++) {
122-
if (preg_match($paramLineRegex, $annotationLines[$i]) == 1) {
122+
if (preg_match($paramLineRegex, $annotationLines[$i]) === 1) {
123123
$lineIdx = $i;
124124
break;
125125
}

0 commit comments

Comments
 (0)