1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/Zend/tests/varSyntax/propertyOfStringError.phpt
Máté Kocsis 1179686f62 Improve error messages for invalid property access
Closes GH-5446
Co-authored-by:  Nikita Popov <nikita.ppv@gmail.com>
2020-05-18 08:27:00 +02:00

11 lines
153 B
PHP

--TEST--
Cannot take property of a string
--FILE--
<?php
"foo"->bar;
?>
--EXPECTF--
Warning: Attempt to read property 'bar' on string in %s on line %d