« Previous | Next » 

Revision 9352bf3f

ID9352bf3f8d582091dc0ba432c50c31b1ae917e25

Added by Alexander Berl almost 8 years ago

[BUGFIX] Classes without namespace create invalid proxy code

This change makes classes without namespace create proper proxy
class code, by optionally skipping the namespace declaration.
Before such classes would create an empty namespace statement,
which resulted in syntax errors, i.e.::

namespace ;

=> "syntax error, unexpected ';', expecting T_STRING or
T_NS_SEPARATOR or '{' in [filename]"

Change-Id: Ia7130b24ab149f00ac318c809c698db7c20934cb
Fixes: #52944
Releases: master, 2.0

  • added
  • modified
  • copied
  • renamed
  • deleted