@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | return $this->originalListeners[$event] ?? []; |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param string $string |
|
43 | + */ |
|
41 | 44 | private function error($string) |
42 | 45 | { |
43 | 46 | app(ErrorPrinter::class)->pended[] = $string; |
@@ -72,6 +75,9 @@ discard block |
||
72 | 75 | } |
73 | 76 | } |
74 | 77 | |
78 | + /** |
|
79 | + * @return string |
|
80 | + */ |
|
75 | 81 | private function stringify($event) |
76 | 82 | { |
77 | 83 | return is_object($event) ? get_class($event) : $event; |
@@ -93,6 +99,9 @@ discard block |
||
93 | 99 | return 'The method of '.$at.' is not callable as an event listener for "'.$e.'" event'; |
94 | 100 | } |
95 | 101 | |
102 | + /** |
|
103 | + * @return string |
|
104 | + */ |
|
96 | 105 | protected function getTypeHintedClass($listenerObj, $methodName) |
97 | 106 | { |
98 | 107 | try { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Imanghafoori\LaravelMicroscope\SpyClasses; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | 5 | use Illuminate\Events\Dispatcher; |
6 | +use Illuminate\Support\Str; |
|
7 | 7 | use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; |
8 | 8 | |
9 | 9 | class SpyDispatcher extends Dispatcher |