Skip to content

Commit c9ee0cb

Browse files
committed
Revert "Append \ to class name returned from ReflectionType::__toString()"
This reverts commit 20fdd47.
1 parent 872028d commit c9ee0cb

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

ext/reflection/tests/ReflectionNamedType.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ var_dump((string) $return);
3232
?>
3333
--EXPECTF--
3434
string(11) "Traversable"
35-
string(13) "?\Traversable"
35+
string(12) "?Traversable"
3636
string(6) "string"
3737
string(7) "?string"
3838
string(4) "Test"
39-
string(6) "?\Test"
39+
string(5) "?Test"
4040
string(4) "Test"
41-
string(6) "?\Test"
41+
string(5) "?Test"

ext/reflection/tests/ReflectionType_001.phpt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ foreach ([
7979
bool(true)
8080
bool(false)
8181
bool(false)
82-
string(9) "\stdClass"
82+
string(8) "stdClass"
8383
** Function 0 - Parameter 1
8484
bool(true)
8585
bool(false)
@@ -94,7 +94,7 @@ string(8) "callable"
9494
bool(true)
9595
bool(true)
9696
bool(false)
97-
string(10) "?\stdClass"
97+
string(9) "?stdClass"
9898
** Function 0 - Parameter 4
9999
bool(false)
100100
** Function 0 - Parameter 5
@@ -121,19 +121,19 @@ string(5) "float"
121121
bool(true)
122122
bool(false)
123123
bool(false)
124-
string(12) "\NotExisting"
124+
string(11) "NotExisting"
125125
** Function 1 - Parameter 0
126126
bool(true)
127127
bool(false)
128128
bool(false)
129-
string(5) "\Test"
129+
string(4) "Test"
130130

131131
*** methods
132132
** Method 0 - parameter 0
133133
bool(true)
134134
bool(false)
135135
bool(false)
136-
string(11) "\SplSubject"
136+
string(10) "SplSubject"
137137
** Method 1 - parameter 0
138138
bool(true)
139139
bool(false)
@@ -148,7 +148,7 @@ string(6) "parent"
148148
bool(true)
149149
bool(false)
150150
bool(false)
151-
string(5) "\Test"
151+
string(4) "Test"
152152

153153
*** return types
154154
** Function/method return type 0
@@ -157,7 +157,7 @@ bool(false)
157157
bool(true)
158158
bool(false)
159159
bool(false)
160-
string(9) "\stdClass"
160+
string(8) "stdClass"
161161
** Function/method return type 2
162162
bool(true)
163163
bool(false)
@@ -177,9 +177,9 @@ string(6) "parent"
177177
bool(true)
178178
bool(false)
179179
bool(false)
180-
string(5) "\Test"
180+
string(4) "Test"
181181
** Function/method return type 6
182182
bool(true)
183183
bool(false)
184184
bool(false)
185-
string(5) "\Test"
185+
string(4) "Test"

ext/reflection/tests/ReflectionType_002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ unset($rm, $rp);
1212
var_dump((string) $rt, (string) $rrt);
1313

1414
--EXPECT--
15-
string(5) "\Test"
16-
string(6) "\Test2"
15+
string(4) "Test"
16+
string(5) "Test2"
1717

ext/reflection/tests/ReflectionType_possible_types.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ string(6) "string"
2828
string(4) "bool"
2929
string(5) "array"
3030
string(8) "callable"
31-
string(9) "\StdClass"
31+
string(8) "StdClass"

0 commit comments

Comments
 (0)