diff --git a/thefuck/rules/php_s.py b/thefuck/rules/php_s.py index 114fb153..65f50392 100644 --- a/thefuck/rules/php_s.py +++ b/thefuck/rules/php_s.py @@ -1,9 +1,10 @@ from thefuck.utils import replace_argument, for_app -@for_app('php') +@for_app('php', at_least=2) def match(command): - return " -s " in command.script + return ('-s' in command.script_parts + and command.script_parts[-1] != '-s') def get_new_command(command):