fix Notice for php cli