Answer the question
In order to leave comments, you need to log in
How to mark a function as global in PhpStorm?
I have a function file. This function must be declared globally, no exports are needed. It is called from a third-party module outside the project.
function get3PAuthorizationUrls() {
// ...
}
Unused function get3PAuthorizationUrls
export function get3PAuthorizationUrls() {
// ...
}
global
/**
* @global
*/
export function get3PAuthorizationUrls() {
// ...
}
Answer the question
In order to leave comments, you need to log in
PhpStorm does not swear, but only notifies you of a possible problem.
The most correct solution is to simply ignore this warning, since the developer knows better.
If it interferes with your life, then you can disable this check in the Inspections section for this project.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question