summaryrefslogtreecommitdiff
path: root/Zend/tests/bug26698.phpt
diff options
context:
space:
mode:
authorMichaƂ Brzuchalski <michal.brzuchalski@gmail.com>2017-06-25 21:43:25 +0200
committerNikita Popov <nikita.ppv@gmail.com>2017-06-25 21:49:41 +0200
commit8e10c9d37398f0f3eece85fca713f19d11cdfb32 (patch)
tree5dcdd7318877b435cd09fcfaa6a692ec0bb7035c /Zend/tests/bug26698.phpt
parentdd15b34018db8a5ba48a79981f7915fd02092b9d (diff)
downloadphp-git-8e10c9d37398f0f3eece85fca713f19d11cdfb32.tar.gz
Implement object type annotation
RFC: https://wiki.php.net/rfc/object-typehint
Diffstat (limited to 'Zend/tests/bug26698.phpt')
-rw-r--r--Zend/tests/bug26698.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zend/tests/bug26698.phpt b/Zend/tests/bug26698.phpt
index aecc708a0d..a4d6ad13f8 100644
--- a/Zend/tests/bug26698.phpt
+++ b/Zend/tests/bug26698.phpt
@@ -5,7 +5,7 @@ Bug #26698 (Thrown exceptions while evaluting argument to pass as parameter cras
ini_set("report_memleaks", 0); // the exception thrown in this test results in a memory leak, which is fine
-class Object
+class ObjectOne
{
function getNone()
{
@@ -23,7 +23,7 @@ class Proxy
{
try
{
- $res = new Object();
+ $res = new ObjectOne();
$this->three($res->getNone());
}
catch(Exception $e)
@@ -36,7 +36,7 @@ class Proxy
{
try
{
- $res = new Object();
+ $res = new ObjectOne();
$this->three(1, $res->getNone());
}
catch(Exception $e)
@@ -49,7 +49,7 @@ class Proxy
{
try
{
- $res = new Object();
+ $res = new ObjectOne();
$this->three(1, 2, $res->getNone());
}
catch(Exception $e)