Visual Studio Code probably swears at the namespace, he doesn't like the forward slash.
VS Code is a tool, it gives recommendations, we have the right to disagree with them, or we can write our own rules for it.
In this case, there is a good article about the namespace in Russian:
https://habr.com/ru/post/212773/
Seeing the leading slash, PHP understands that it needs to look outside the current namespace…
There is a paragraph in the article that talks about this slash.
We can optimize the code a little in different methods, this is in the plans. A lot of work.
If I understood the question correctly.
вау) даже иностранцы интересуются этим сайтом)
I'm from China. This text is translated by Baidu.com 😅
Visual Studio Code probably swears at the namespace, he doesn't like the forward slash.
VS Code is a tool, it gives recommendations, we have the right to disagree with them, or we can write our own rules for it.
In this case, there is a good article about the namespace in Russian:
https://habr.com/ru/post/212773/
There is a paragraph in the article that talks about this slash.
We can optimize the code a little in different methods, this is in the plans. A lot of work.
If I understood the question correctly.