Skip to content

Commit d6158cf

Browse files
committed
HPB-4006 also check sub namespace
Co-authored-by: Sander Muller <[email protected]> Signed-off-by: Tonko Mulder <[email protected]>
1 parent ca7f043 commit d6158cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/ScopeRequestValidateMethods.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getNodeType(): string
3232
/** @throws ShouldNotHappenException | ReflectionException */
3333
public function processNode(Node $node, Scope $scope): array
3434
{
35-
if ($scope->getNamespace() === 'App\\Http\\Request') {
35+
if (str_starts_with($scope->getNamespace(), 'App\\Http\\Request')) {
3636
return [];
3737
}
3838

0 commit comments

Comments
 (0)