File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/DebugBar/DataCollector Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ public function getName()
155
155
* @param mixed $value
156
156
* @throws DebugBarException
157
157
*/
158
- public function offsetSet ($ key , $ value )
158
+ public function offsetSet ($ key , $ value ): void
159
159
{
160
160
throw new DebugBarException ("AggregatedCollector[] is read-only " );
161
161
}
@@ -164,6 +164,8 @@ public function offsetSet($key, $value)
164
164
* @param mixed $key
165
165
* @return mixed
166
166
*/
167
+
168
+ #[\ReturnTypeWillChange]
167
169
public function offsetGet ($ key )
168
170
{
169
171
return $ this ->collectors [$ key ];
@@ -173,7 +175,7 @@ public function offsetGet($key)
173
175
* @param mixed $key
174
176
* @return bool
175
177
*/
176
- public function offsetExists ($ key )
178
+ public function offsetExists ($ key ): bool
177
179
{
178
180
return isset ($ this ->collectors [$ key ]);
179
181
}
@@ -182,7 +184,7 @@ public function offsetExists($key)
182
184
* @param mixed $key
183
185
* @throws DebugBarException
184
186
*/
185
- public function offsetUnset ($ key )
187
+ public function offsetUnset ($ key ): void
186
188
{
187
189
throw new DebugBarException ("AggregatedCollector[] is read-only " );
188
190
}
You can’t perform that action at this time.
0 commit comments