Skip to content

Commit

Permalink
Merge pull request #381 from signe/feature/php-identifier
Browse files Browse the repository at this point in the history
Add php to interpreters list
  • Loading branch information
asottile committed Apr 25, 2023
2 parents 2337b73 + edf40be commit c7022f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions identify/interpreters.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
'node': {'javascript'},
'nodejs': {'javascript'},
'perl': {'perl'},
'php': {'php'},
'php7': {'php', 'php7'},
'php8': {'php', 'php8'},
'python': {'python'},
'python2': {'python', 'python2'},
'python3': {'python', 'python3'},
Expand Down
1 change: 1 addition & 0 deletions tests/identify_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def test_all_tags_contains_each_type():
assert 'plist' in identify.ALL_TAGS # extension, needs binary check
assert 'dockerfile' in identify.ALL_TAGS # by file convention
assert 'python3' in identify.ALL_TAGS # by shebang
assert 'php8' in identify.ALL_TAGS # by shebang


def test_tags_from_path_does_not_exist(tmpdir):
Expand Down

0 comments on commit c7022f7

Please sign in to comment.