« Previous | Next » 

Revision d9e103d2

IDd9e103d24ada569e9492224f6ce96de6e76ccd54
Parent c4b5ced6

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.1, 2.0

  • added
  • modified
  • copied
  • renamed
  • deleted