com php-src: better if this makes sense ... I think: ext/reflection/tests/ReflectionType_001.phpt
| From: | Bob Weinand | Date: | Fri, 11 Mar 2016 06:50:02 +0000 |
| Subject: | com php-src: better if this makes sense ... I think: ext/reflection/tests/ReflectionType_001.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95688@lists.php.net to get a copy of this message | ||
Commit: 61da1b9c8ea940851abd323e95c4ae1ac3c7917b
Author: Joe Watkins <krakjoe@php.net> Fri, 11 Mar 2016 06:50:02 +0000
Parents: 29f80f3673fada9806f3516271c11a88896964fd
Branches: typed_ref_properties
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=61da1b9c8ea940851abd323e95c4ae1ac3c7917b
Log:
better if this makes sense .... I think
Changed paths:
M ext/reflection/tests/ReflectionType_001.phpt
Diff:
diff --git a/ext/reflection/tests/ReflectionType_001.phpt
b/ext/reflection/tests/ReflectionType_001.phpt
index 015525a..fe6b989 100644
--- a/ext/reflection/tests/ReflectionType_001.phpt
+++ b/ext/reflection/tests/ReflectionType_001.phpt
@@ -89,7 +89,7 @@ $reflector = new ReflectionClass(PropTypeTest::class);
foreach ($reflector->getProperties() as $name => $property) {
printf("public %s $%s;\n",
- $property->getName(), (string) $property->getType());
+ $property->getType(), $property->getName());
}
echo "** property types\n";
@@ -207,8 +207,8 @@ string(4) "Test"
*** property types
public int $int;
public string $string;
-public arr $array;
+public array $arr;
public callable $callable;
-public std $stdClass;
-public other $OtherThing;
+public stdClass $std;
+public OtherThing $other;
** property types