1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-02 05:37:56 +02:00

[ticket/16741] Fix code sniffer

PHPBB3-16741
This commit is contained in:
Máté Bartus 2021-08-29 17:35:10 +02:00 committed by Tristan Darricau
parent 98134abe20
commit 522a17199d

@ -182,7 +182,7 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
// Checks in type hinting
$old_function_declaration = $stackPtr;
while (($function_declaration = $phpcsFile->findNext(T_FUNCTION, ($old_function_declaration + 1))) !== false)
while (($function_declaration = $phpcsFile->findNext([T_FUNCTION, T_CLOSURE], ($old_function_declaration + 1))) !== false)
{
$old_function_declaration = $function_declaration;