@@ -91,8 +91,6 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * get the list of extra types that are valid for this specific object |
93 | 93 | * |
94 | - * @param object $object |
|
95 | - * the object to examine |
|
96 | 94 | * @return string[] |
97 | 95 | * a (possibly empty) list of types for this object |
98 | 96 | */ |
@@ -104,8 +102,6 @@ discard block |
||
104 | 102 | /** |
105 | 103 | * what PHP type is $data? |
106 | 104 | * |
107 | - * @param mixed $data |
|
108 | - * the data to examine |
|
109 | 105 | * @param int $flags |
110 | 106 | * options to change what we put in the return value |
111 | 107 | * @return string |
@@ -121,7 +117,7 @@ discard block |
||
121 | 117 | * |
122 | 118 | * @param mixed $item |
123 | 119 | * the item to examine |
124 | - * @return array |
|
120 | + * @return string[] |
|
125 | 121 | * the list of type(s) that this item can be |
126 | 122 | */ |
127 | 123 | function get_strict_types($item) |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * |
60 | 60 | * @param mixed $item |
61 | 61 | * the item to examine |
62 | - * @return array |
|
62 | + * @return string[] |
|
63 | 63 | * the list of type(s) that this item can be |
64 | 64 | */ |
65 | 65 | public function __invoke($item) |
@@ -12,9 +12,9 @@ |
||
12 | 12 | $varDump = ob_get_clean(); |
13 | 13 | |
14 | 14 | $output = '```php' . PHP_EOL |
15 | - . $code . PHP_EOL . PHP_EOL |
|
16 | - . "// outputs" . PHP_EOL |
|
17 | - . "//" . PHP_EOL; |
|
15 | + . $code . PHP_EOL . PHP_EOL |
|
16 | + . "// outputs" . PHP_EOL |
|
17 | + . "//" . PHP_EOL; |
|
18 | 18 | |
19 | 19 | foreach (explode("\n", trim($varDump)) as $line) { |
20 | 20 | $output .= "// {$line}" . PHP_EOL; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * |
49 | 49 | * @param array $filterList |
50 | 50 | * a list of namespaces and classes to skip over |
51 | - * @return StackFrame |
|
51 | + * @return GanbaroDigital\MissingBits\TraceInspectors\StackFrame |
|
52 | 52 | */ |
53 | 53 | function get_caller(array $filterList = []) |
54 | 54 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * the debug_backtrace() return value |
70 | 70 | * @param array $filterList |
71 | 71 | * a list of namespaces and classes to skip over |
72 | - * @return StackFrame |
|
72 | + * @return GanbaroDigital\MissingBits\TraceInspectors\StackFrame |
|
73 | 73 | */ |
74 | 74 | function get_caller_from_trace(array $backtrace, array $filterList = []) |
75 | 75 | { |
@@ -43,13 +43,13 @@ |
||
43 | 43 | |
44 | 44 | use GanbaroDigital\MissingBits\TraceInspectors\GetCaller; |
45 | 45 | |
46 | - /** |
|
47 | - * work out who has called a piece of code |
|
48 | - * |
|
49 | - * @param array $filterList |
|
50 | - * a list of namespaces and classes to skip over |
|
51 | - * @return StackFrame |
|
52 | - */ |
|
46 | + /** |
|
47 | + * work out who has called a piece of code |
|
48 | + * |
|
49 | + * @param array $filterList |
|
50 | + * a list of namespaces and classes to skip over |
|
51 | + * @return StackFrame |
|
52 | + */ |
|
53 | 53 | function get_caller(array $filterList = []) |
54 | 54 | { |
55 | 55 | // we supply the trace |