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
InnerFunctionsSniff detects functions defined inside other functions, but not inside closures, meaning it won't report any violations for the following snippet:
$myFunc = function () {
functiontest(): int {
return54;
}
};
For consistency, this should be treated the same as:
functionmyFunc() {
functiontest(): int {
return54;
}
}
The text was updated successfully, but these errors were encountered:
As per #3932, development on PHP_CodeSniffer will continue in the PHPCSStandards/PHP_CodeSniffer repository. If you want to stay informed, you may want to start "watching" that repo (or watching releases from that repo).
InnerFunctionsSniff detects functions defined inside other functions, but not inside closures, meaning it won't report any violations for the following snippet:
For consistency, this should be treated the same as:
The text was updated successfully, but these errors were encountered: