You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the above message on a file, but it doesn't tell me which line or any context. Is this some internal error, or a possibly a legit problem (php -l on the file says "no syntax errors detected"). If the former, I think php7cc should print out additional information so that the offending part can be easily identified.
The text was updated successfully, but these errors were encountered:
Seems like this is a legit error. I tried running your code on PHP 7.0.24 and got:
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /var/app/test.php on line 4
Although you are right that s is a valid modifier, I don't think modifiers are allowed before the opening delimiter. You probably have to move s to the end of the regexp like this: '/^internal:/s'.
I'm getting the above message on a file, but it doesn't tell me which line or any context. Is this some internal error, or a possibly a legit problem (
php -l
on the file says "no syntax errors detected"). If the former, I think php7cc should print out additional information so that the offending part can be easily identified.The text was updated successfully, but these errors were encountered: