Hi

I'm using a 3rd party SDK, and they have . (dot) in the namespace name - personally I do not like that, but I cannot change it.
As far as I can google etc. I cannot find any information that forbid . (dot) in the namespace name.

Why does phptools report a . (dot) in the namespace name as a problem?

    rabol May I ask for an example? Dot in PHP's namespace syntax is not allowed.

      I think the code is generated by an OpenApi generator - I could be wrong, but there is nowhere in the PHP.net documentation said that one cannot have dot in the namespace name

        rabol It's implicit - dot '.' is a string concatenation operator, it's not a part of any possible PHP identifier.

        Upon running with PHP, you're getting the syntax error:

        Parse error: syntax error, unexpected token ".", expecting "{"

        So I think this file is probably used as a template for further processing maybe?

          Write a Reply...