@@ -95,7 +95,7 @@ public function collect(Request $request, Response $response, Throwable $excepti
9595 ];
9696 }
9797
98- $ featureTrace = & $ this ->data ['requests ' ][$ trace ['feature ' ]];
98+ $ featureTrace = $ this ->data ['requests ' ][$ trace ['feature ' ]];
9999 $ featureTrace ['requests ' ]++;
100100
101101 if ($ trace ['result ' ] === true ) {
@@ -117,6 +117,7 @@ public function collect(Request $request, Response $response, Throwable $excepti
117117 $ this ->data ['activators ' ][$ activator ]['inactiveRequests ' ]++;
118118 }
119119 }
120+ $ this ->data ['requests ' ][$ trace ['feature ' ]] = $ featureTrace ;
120121 }
121122
122123 $ this ->data ['summary ' ]['features ' ] = count ($ this ->data ['requests ' ]);
@@ -136,7 +137,7 @@ public function collect(Request $request, Response $response, Throwable $excepti
136137 *
137138 * @return array
138139 */
139- public function getRequests ()
140+ public function getRequests (): array
140141 {
141142 return $ this ->data ['requests ' ];
142143 }
@@ -146,7 +147,7 @@ public function getRequests()
146147 *
147148 * @return array
148149 */
149- public function getActivators ()
150+ public function getActivators (): array
150151 {
151152 return $ this ->data ['activators ' ];
152153 }
@@ -156,7 +157,7 @@ public function getActivators()
156157 *
157158 * @return array
158159 */
159- public function getDecorators ()
160+ public function getDecorators (): array
160161 {
161162 return $ this ->data ['decorators ' ];
162163 }
@@ -166,7 +167,7 @@ public function getDecorators()
166167 *
167168 * @return array
168169 */
169- public function getTrace ()
170+ public function getTrace (): array
170171 {
171172 return $ this ->data ['trace ' ];
172173 }
@@ -176,15 +177,15 @@ public function getTrace()
176177 *
177178 * @return array
178179 */
179- public function getSummary ()
180+ public function getSummary (): array
180181 {
181182 return $ this ->data ['summary ' ];
182183 }
183184
184185 /**
185186 * {@inheritdoc}
186187 */
187- public function getName ()
188+ public function getName (): string
188189 {
189190 return 'flagception ' ;
190191 }
0 commit comments