Hello I am using Enterprise Architect for PHP code generating and diagramming. I Think I discovered a bug. I noticed that when a file is required it is added before the namespace, this is illegal in PHP and so I have to go through all the files and edit them manually. Is this a bug or can it be fixed by some button or setting somewhere?
Does anyone have any insight into this issue?
here is an example
<?php require_once("fileName.php");namespace someNameSpace;class Myclass Extends fileName{ //some code goes in here methods and properties }?>
The code should look like this
<?php namespace someNameSpace;require_once("fileName.php");class Myclass Extends fileName{ //some code goes in here methods and properties }?>
The namespace has to be declared on the first line of the file. The code generator however declares the namespace after the the included files.
Thank you for any responses.