Closed nitemare closed 6 years ago
http://php.net/manual/en/language.namespaces.importing.php
"The use keyword must be declared in the outermost scope of a file (the global scope) or inside namespace declarations. This is because the importing is done at compile time and not runtime, so it cannot be block scoped. "
I hope this will help
it did, thanks :)
I'm trying to switch from v1 to v2, as v1 has stopped working, and v2 seems to work when i test it on its own. but when i attempt to integrate it in to my class, i'm getting an error about "Use". Admittedly i'm not familiar with Use or how to fix it. The error is:
here is an example of my code: `
class Source{
} `