php-src/Zend/tests/stringable_internal_class.phpt
Nikita Popov b0ec6223e2 Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Implement Stringable automatically for internal classes
2021-11-05 10:23:23 +01:00

15 lines
294 B
PHP

--TEST--
Stringable should be automatically implemented for internal classes
--EXTENSIONS--
zend_test
--FILE--
<?php
// _ZendTestClass defines __toString() but does not explicitly implement Stringable.
$obj = new _ZendTestClass;
var_dump($obj instanceof Stringable);
?>
--EXPECT--
bool(true)