One of the directories in my app has the name web services
. For the classes contained in that folder I have tried declaring the namespace various ways, including:
namespace web services;
namespace 'web services';
namespace [web services];
namespace {web services};
...none of which work. VS Code gives warnings on each of these.
The multitude of online documentation/forum posts/blogs regarding PHP namespaces do not mention anything about whether or not spaces are allowed; though all of the examples they show do not have any namespaces that contain spaces. Is it possible for a namespace to contain a space so it matches the app's directory structure?
PHP 7.4.13 is being used for this app.
question from:
https://stackoverflow.com/questions/65948006/is-there-a-way-to-have-a-namespace-with-a-space-in-it 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…