com php-src: Fixed test (NULL is no compatible with "int" and should produce a error): Zend/tests/type_declarations/typed_proper ties_009.phpt
| From: | Bob Weinand | Date: | Tue, 24 May 2016 14:16:29 +0000 |
| Subject: | com php-src: Fixed test (NULL is no compatible with "int" and should produce a error): Zend/tests/type_declarations/typed_proper ties_009.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95544@lists.php.net to get a copy of this message | ||
Commit: a1e3ea301694caa26a1bb46d01e3842790796bc1
Author: Dmitry Stogov <dmitry@zend.com> Tue, 24 May 2016 17:16:29 +0300
Parents: 68bb52e1bed8116c1ac88237bcaf482d4f9a2135
Branches: typed_ref_properties
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a1e3ea301694caa26a1bb46d01e3842790796bc1
Log:
Fixed test (NULL is no compatible with "int" and should produce a error)
Changed paths:
M Zend/tests/type_declarations/typed_properties_009.phpt
Diff:
diff --git a/Zend/tests/type_declarations/typed_properties_009.phpt
b/Zend/tests/type_declarations/typed_properties_009.phpt
index c4c34dc..83ccfcf 100644
--- a/Zend/tests/type_declarations/typed_properties_009.phpt
+++ b/Zend/tests/type_declarations/typed_properties_009.phpt
@@ -7,7 +7,8 @@ class Foo {
public function __get($name) {
var_dump($name);
- /* implicit return null, weakly cast to int(0) */
+ /* return value has to be compatible with int */
+ return 0;
}
}