3 Ответа

  1. 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.

    VS Code

    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.

  1. вау) даже иностранцы интересуются этим сайтом)

    1. I'm from China. This text is translated by Baidu.com 😅