You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -298,7 +298,7 @@ public static function parse(string $context,
298
298
if ($methodCall->name->name === 'getParam') {
299
299
$name = $methodCall->args[0]->value->value;
300
300
301
-
if (preg_match('/^[a-zA-Z][a-zA-Z0-9_]*$/', $name)) {
301
+
if (preg_match('/^[a-zA-Z]\w*$/', (string)$name)) {
302
302
Logger::error($context . ': getParam: ' . $name, 'Do not use getParam() when a controller method parameter also works. With getParam() it is not possible to add a comment and specify the parameter type, therefore it should be avoided whenever possible.');
@@ -245,7 +245,7 @@ public static function resolve(string $context, array $definitions, ParamTagValu
245
245
Logger::panic($context, "JSON objects can only be indexed by '" . implode("', '", $allowedTypes) . "' but got '" . $node->genericTypes[0]->name . "'");
246
246
}
247
247
248
-
if ($nodeinstanceof GenericTypeNode && $node->type->name == 'int' && count($node->genericTypes) == 2) {
0 commit comments