Skip to content

Commit

Permalink
Fix find in global namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Erwan Richard committed Jan 17, 2018
1 parent 2ffd32a commit c6edb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php_companion/utils.py
Expand Up @@ -46,7 +46,7 @@ def filter_file(file):
return namespacesArray

def find_in_global_namespace(symbol):
definedClasses = subprocess.check_output(["php", "-r", "echo json_encode(get_declared_classes(), get_declared_interfaces());"]);
definedClasses = subprocess.check_output(["php", "-r", "echo json_encode(array_merge(get_declared_classes(), get_declared_interfaces()));"]);
definedClasses = definedClasses.decode('utf-8')
definedClasses = json.loads(definedClasses)
definedClasses.sort()
Expand Down

0 comments on commit c6edb72

Please sign in to comment.