Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Generated PhP doesn't follow PhP method overloading standards #991
PhP shouldn't allow any method overriding since it relies on method names alone for method signatures. However, Umple is allowing method overriding as long as the function parameter types are different.
Minimum Steps to Reproduce
Use the following to generate PhP in Umple online:
It should produce an error, but doesn't.
We don't have a consistent way to flag errors that affect only one generated language at the current time. One way to deal with this in PhP would be to generate one method and a condition that says if String then execute the first block, and if integer then generate the second. But that would not scale up to many arguments. We may want to do that and leave the other cases unresolved