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
For namespaced functions and constants, disallow importing these via use func/ use const.
Instead, the namespace should be imported and the function name/constant name should be qualified with the namespace name.
Enforce:
usePackage\Level;
Level\function_name();
Disallow:
use func Package\Level\function_name;
function_name();
The text was updated successfully, but these errors were encountered:
Importing functions/constants is now disallowed. While it is not enforced that the namespace is imported, that is realistically, the only other alternative.
Discussed on Slack with @herregroen.
For namespaced functions and constants, disallow importing these via
use func
/use const
.Instead, the namespace should be imported and the function name/constant name should be qualified with the namespace name.
Enforce:
Disallow:
The text was updated successfully, but these errors were encountered: