diff --git a/src/udl/skel/PHP/pylib/lang_php.py b/src/udl/skel/PHP/pylib/lang_php.py index dc292ff1c5..4bb6ad5440 100644 --- a/src/udl/skel/PHP/pylib/lang_php.py +++ b/src/udl/skel/PHP/pylib/lang_php.py @@ -1467,7 +1467,7 @@ def _getFQNForType(varType, fileinfo, namespace): if varType.startswith("(") and varType.endswith(")"): return _getFQNForTypePiece(varType[1:-1], fileinfo, namespace) # Handle int|null - varTypes = varType.split("|"); + varTypes = varType.split("|") rtn = "" for varTypePiece in varTypes: if rtn != "": @@ -1492,7 +1492,7 @@ def _getFQNForTypePiece(varType, fileinfo, namespace): varType = use_import.name + "\\" + use_import.symbol if varType[0] != "\\": varType = "\\" + varType - break; + break else: # Add namespace if not found if namespace: