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

Class names consisting of one letter are not allowed #10

Open
sjinks opened this issue Apr 15, 2017 · 0 comments
Open

Class names consisting of one letter are not allowed #10

sjinks opened this issue Apr 15, 2017 · 0 comments

Comments

@sjinks
Copy link
Contributor

sjinks commented Apr 15, 2017

namespace Test\Calls;

class A
{
}
$ zephir fullclean; zephir generate --backend=ZendEngine3
Zephir\Parser\ParseException: Syntax error in /home/vladimir/workspace/zephir/test/calls/a.zep on line 3

at Library/CompilerFile.php(595)
#0 Library/Compiler.php(258): Zephir\CompilerFile->preCompile(Object(Zephir\Compiler))
#1 Library/Compiler.php(297): Zephir\Compiler->preCompile('test/calls/a.ze...')
#2 Library/Compiler.php(827): Zephir\Compiler->recursivePreCompile('test')
#3 Library/Commands/CommandAbstract.php(107): Zephir\Compiler->generate(Object(Zephir\Commands\CommandGenerate))
#4 Library/Bootstrap.php(200): Zephir\Commands\CommandAbstract->execute(Object(Zephir\Config), Object(Zephir\Logger))
#5 compiler.php(22): Zephir\Bootstrap::boot()
#6 {main}

At that:

namespace Test\Calls;

class a
{
}

works.

@sergeyklay sergeyklay self-assigned this Dec 14, 2017
@sergeyklay sergeyklay removed their assignment Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants