Skip to content

Commit 8610a2c

Browse files
authored
Merge pull request #40 from sptndc/remove-executable-property
`executable_path` has been deprecated, use binary name instead.
2 parents d662386 + ab39b71 commit 8610a2c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

linter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class PHP(Linter):
2121
r'^(?:Parse|Fatal) (?P<error>error):(\s*(?P<type>parse|syntax) error,?)?\s*'
2222
r'(?P<message>(?:unexpected \'(?P<near>[^\']+)\')?.*) (?:in - )?on line (?P<line>\d+)'
2323
)
24-
executable = 'php'
2524
error_stream = util.STREAM_STDOUT
2625

2726
def split_match(self, match):
@@ -41,7 +40,7 @@ def cmd(self):
4140
if 'cmd' in settings:
4241
command = [settings.get('cmd')]
4342
else:
44-
command = [self.executable_path]
43+
command = ['php']
4544

4645
command.append('-l')
4746
command.append('-n')

0 commit comments

Comments
 (0)