Skip to content

Commit

Permalink
More test fixing (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet authored Aug 31, 2024
1 parent 359afa1 commit fa8a5b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker_image/strip_php_array_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
with open(file, "r", encoding="utf-8", errors="ignore") as f:
data = f.read()
with open(file, "w") as f:
for i in range(10):
data = re.sub(r"(function[^(]*\([^)]*)\? *array (\$[^)]*\))", r"\1\2", data, re.MULTILINE)
for i in range(10):
data = re.sub(r"(function[^(]*\([^)]*)array (\$[^)]*\))", r"\1\2", data, re.MULTILINE)
f.write(data)

0 comments on commit fa8a5b3

Please sign in to comment.