1 | <?php |
||
34 | class Listener implements ListenerContract |
||
35 | { |
||
36 | /** |
||
37 | * Holds an instance of the writer. |
||
38 | * |
||
39 | * @var \NunoMaduro\Collision\Contracts\Writer |
||
40 | */ |
||
41 | protected $writer; |
||
42 | |||
43 | /** |
||
44 | * Holds the exception found, if any. |
||
45 | * |
||
46 | * @var \Throwable|null |
||
47 | */ |
||
48 | protected $exceptionFound; |
||
49 | |||
50 | /** |
||
51 | * Creates a new instance of the class. |
||
52 | * |
||
53 | * @param \NunoMaduro\Collision\Contracts\Writer|null $writer |
||
54 | */ |
||
55 | 3 | public function __construct(WriterContract $writer = null) |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 1 | public function render(\Throwable $t) |
|
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | 1 | public function addError(Test $test, \Throwable $t, float $time): void |
|
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | 1 | public function addWarning(Test $test, Warning $t, float $time): void |
|
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | 1 | public function addFailure(Test $test, AssertionFailedError $t, float $time): void |
|
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | 1 | public function addIncompleteTest(Test $test, \Throwable $t, float $time): void |
|
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | 1 | public function addRiskyTest(Test $test, \Throwable $t, float $time): void |
|
113 | |||
114 | /** |
||
115 | * {@inheritdoc} |
||
116 | */ |
||
117 | 1 | public function addSkippedTest(Test $test, \Throwable $t, float $time): void |
|
120 | |||
121 | /** |
||
122 | * {@inheritdoc} |
||
123 | */ |
||
124 | 1 | public function startTestSuite(TestSuite $suite): void |
|
127 | |||
128 | /** |
||
129 | * {@inheritdoc} |
||
130 | */ |
||
131 | 1 | public function endTestSuite(TestSuite $suite): void |
|
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | 1 | public function startTest(Test $test): void |
|
141 | |||
142 | /** |
||
143 | * {@inheritdoc} |
||
144 | */ |
||
145 | 1 | public function endTest(Test $test, float $time): void |
|
148 | |||
149 | /** |
||
150 | * {@inheritdoc} |
||
151 | */ |
||
152 | 7 | public function __destruct() |
|
158 | |||
159 | /** |
||
160 | * Builds an Writer. |
||
161 | * |
||
162 | * @return \NunoMaduro\Collision\Contracts\Writer |
||
163 | */ |
||
164 | 1 | protected function buildWriter(): WriterContract |
|
176 | } |
||
177 | } |
||
178 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..