Skip to content

Commit

Permalink
Merge pull request Komodo#3888 from ssigwart/catch
Browse files Browse the repository at this point in the history
Fix PHP Catch Statement CodeIntel
  • Loading branch information
th3coop authored Sep 28, 2020
2 parents 09a2a73 + 7368953 commit 74b68d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udl/skel/PHP/pylib/lang_php.py
Original file line number Diff line number Diff line change
Expand Up @@ -3447,7 +3447,7 @@ def _addCodePiece(self, newstate=S_DEFAULT, varnames=None):
log.debug("typeNames:%r", typeNames)
if typeNames:
self.addReturnType(".".join(typeNames))
elif keyword == "catch" and pos+3 >= len(text):
elif keyword == "catch" and pos+3 < len(text):
# catch ( Exception $e)
pos += 1 # skip the paren
typeNames, p = self._getVariableType(styles, text, pos, assignmentChar=None)
Expand Down

0 comments on commit 74b68d4

Please sign in to comment.