« Previous | Next » 

Revision 649c3fa3

ID649c3fa310aa6dad60e6d4a14b36532ac4772f42
Parent 149e1f1f

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