gives me an unexpecected T_DEFAULT, is there any way of working around this? Can I escape the reserved word somehow?
You can't use reserved words like default
for namespaces in PHP - you'll have to find a workaround (_default
, default_
, default1
etc.?).
As @drick says you cant use a php reserved word for your purpose.
It has its own meaning. For more info on namespaces you can have a look here FYI default is a reserved word used in switch case more info here