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;
}
}