> As a special-case, quoted strings show the string's *content* in double 
> quotes, e.g. 'unexpected quoted string "foo" ...' rather than 'unexpected 
> quoted string ""foo"" ...' or 'unexpected quoted string "'foo'" ...'.

For me, in this case, you have dropped the wrong pair of quotes. That is, I 
prefer to see the quotes used in the source text (“unexpected string 'foo' ...” 
or “unexpected string "foo" ...”), over the quotes that make error messages 
consistent with other error messages. This is because I like to have hints that 
help me to visually identify the offending string in the source text when it is 
of length 0 or 1, but on other hand I don’t care about consistency across error 
messages. 

—Claude

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to