mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
b0ec6223e2
* PHP-8.0: Implement Stringable automatically for internal classes
15 lines
294 B
PHP
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)
|