Skip to content

Commit

Permalink
Merge pull request #40 from sptndc/remove-executable-property
Browse files Browse the repository at this point in the history
`executable_path` has been deprecated, use binary name instead.
  • Loading branch information
kaste authored Apr 19, 2018
2 parents d662386 + ab39b71 commit 8610a2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class PHP(Linter):
r'^(?:Parse|Fatal) (?P<error>error):(\s*(?P<type>parse|syntax) error,?)?\s*'
r'(?P<message>(?:unexpected \'(?P<near>[^\']+)\')?.*) (?:in - )?on line (?P<line>\d+)'
)
executable = 'php'
error_stream = util.STREAM_STDOUT

def split_match(self, match):
Expand All @@ -41,7 +40,7 @@ def cmd(self):
if 'cmd' in settings:
command = [settings.get('cmd')]
else:
command = [self.executable_path]
command = ['php']

command.append('-l')
command.append('-n')
Expand Down

0 comments on commit 8610a2c

Please sign in to comment.