Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namespace PhpAes couldn't be read #10

Open
jackthegooner opened this issue Jul 7, 2020 · 1 comment
Open

namespace PhpAes couldn't be read #10

jackthegooner opened this issue Jul 7, 2020 · 1 comment

Comments

@jackthegooner
Copy link

I call namespace and class like this use PhpAes/Aes, but the namespace PhpAes couldn't be read

@xurizaemon
Copy link

xurizaemon commented Jun 9, 2021

Hi @jackthegooner

PHP class namespaces use \ (backslash) not / (forward slash).

The forward slash character has an existing usage as the division symbol, so use PhpAes/Aes; won't make sense to the interpreter - the use statement is parsed first, and wants a semicolon before continuing.

See https://www.php.net/language.namespaces and https://www.php.net/manual/en/language.namespaces.importing

Hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants