We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c3a4f commit 2247c69Copy full SHA for 2247c69
tests/PHPStan/Analyser/nsrt/bug-to-string-type.php
@@ -0,0 +1,32 @@
1
+<?php
2
+
3
+namespace BugToStringType;
4
5
+class ParentClassWithToStringMixedReturn
6
+{
7
+ public function __toString()
8
+ {
9
+ return 'a';
10
+ }
11
+}
12
13
+class WithParentMixedReturn extends ParentClassWithToStringMixedReturn
14
15
16
17
+ return 'value';
18
19
20
21
+class Consumer extends WithParentMixedReturn
22
23
24
25
26
27
28
29
+function test(Consumer $test): void
30
31
+ assertType('mixed', $test->__toString());
32
0 commit comments