php-zephir-parser icon indicating copy to clipboard operation
php-zephir-parser copied to clipboard

[NFR] Add support for creating classes/methods with capitalized names

Open sergeyklay opened this issue 8 years ago • 1 comments

From @tamaranga on February 1, 2014 9:39

It's impossible to create class:

class HTML {
}

and method:

class Test {
      public function HTML() {}
}

Maybe it is not so difficult to allow such capitalized names or describe this limitation in docs. Currently it's just "ParseException: Syntax error", that is not very obvious.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1431269-nfr-add-support-for-creating-classes-methods-with-capitalized-names?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github).

Copied from original issue: phalcon/zephir#141

sergeyklay avatar May 13 '17 10:05 sergeyklay

From @nazar-pc on December 2, 2014 4:20

I'm also wondering about this, just wanted to create such class. What is the actual limitation for this?

sergeyklay avatar May 13 '17 10:05 sergeyklay