Last active
August 29, 2015 14:11
-
-
Save hikari-no-yume/c0d780466def9f226318 to your computer and use it in GitHub Desktop.
Type names fixer (requires GNU sed)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
find $1 -type f -name '*.phpt' -exec ./fixer {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sed -i -f | |
s/() expects parameter \([0-9]*\) to be long/() expects parameter \1 to be integer/g | |
s/() expects parameter \([0-9]*\) to be double/() expects parameter \1 to be float/g | |
s/() expects parameter \([0-9]*\) to be \([a-zA-Z]*\), double given/() expects parameter \1 to be \2, float given/g | |
s/() must \([ a-zA-Z]*\), double given/() must \1, float given/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment