diff options
| author | Nicolas Grekas <nicolas.grekas@gmail.com> | 2020-01-13 17:06:26 +0100 |
|---|---|---|
| committer | Nicolas Grekas <nicolas.grekas@gmail.com> | 2020-03-02 15:25:32 +0100 |
| commit | 9e775db02567d3b90694ebb43f0225875a48e8c9 (patch) | |
| tree | cd25ebdb5e735ca322eded189b156619a4b43534 /sapi/cli/tests | |
| parent | c06850b9fa1b6dc8f4f8a46d6d0ea55e8baf7cbf (diff) | |
| download | php-git-9e775db02567d3b90694ebb43f0225875a48e8c9.tar.gz | |
Define Stringable with __toString():string method
Diffstat (limited to 'sapi/cli/tests')
| -rw-r--r-- | sapi/cli/tests/005.phpt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sapi/cli/tests/005.phpt b/sapi/cli/tests/005.phpt index d268104606..ad0ea37c29 100644 --- a/sapi/cli/tests/005.phpt +++ b/sapi/cli/tests/005.phpt @@ -37,7 +37,7 @@ string(183) "Class [ <internal:Core> class stdClass ] { } " -string(1969) "Class [ <internal:Core> class Exception implements Throwable ] { +string(2008) "Class [ <internal:Core> class Exception implements Throwable, Stringable ] { - Constants [0] { } @@ -122,10 +122,11 @@ string(1969) "Class [ <internal:Core> class Exception implements Throwable ] { } } - Method [ <internal:Core, prototype Throwable> public method __toString ] { + Method [ <internal:Core, prototype Stringable> public method __toString ] { - Parameters [0] { } + - Return [ string ] } } } |
