@@ -230,20 +230,16 @@ public function getUser(): string
230
230
231
231
/**
232
232
* Gets the roles of the user.
233
- *
234
- * @return array|Data
235
233
*/
236
- public function getRoles ()
234
+ public function getRoles (): array | Data
237
235
{
238
236
return $ this ->data ['roles ' ];
239
237
}
240
238
241
239
/**
242
240
* Gets the inherited roles of the user.
243
- *
244
- * @return array|Data
245
241
*/
246
- public function getInheritedRoles ()
242
+ public function getInheritedRoles (): array | Data
247
243
{
248
244
return $ this ->data ['inherited_roles ' ];
249
245
}
@@ -282,10 +278,8 @@ public function getImpersonationExitPath(): ?string
282
278
283
279
/**
284
280
* Get the class name of the security token.
285
- *
286
- * @return string|Data|null
287
281
*/
288
- public function getTokenClass ()
282
+ public function getTokenClass (): string | Data | null
289
283
{
290
284
return $ this ->data ['token_class ' ];
291
285
}
@@ -305,7 +299,7 @@ public function getLogoutUrl(): ?string
305
299
*
306
300
* @return string[]|Data
307
301
*/
308
- public function getVoters ()
302
+ public function getVoters (): array | Data
309
303
{
310
304
return $ this ->data ['voters ' ];
311
305
}
@@ -317,28 +311,21 @@ public function getVoterStrategy(): string
317
311
318
312
/**
319
313
* Returns the log of the security decisions made by the access decision manager.
320
- *
321
- * @return array|Data
322
314
*/
323
- public function getAccessDecisionLog ()
315
+ public function getAccessDecisionLog (): array | Data
324
316
{
325
317
return $ this ->data ['access_decision_log ' ];
326
318
}
327
319
328
320
/**
329
321
* Returns the configuration of the current firewall context.
330
- *
331
- * @return array|Data|null
332
322
*/
333
- public function getFirewall ()
323
+ public function getFirewall (): array | Data | null
334
324
{
335
325
return $ this ->data ['firewall ' ];
336
326
}
337
327
338
- /**
339
- * @return array|Data
340
- */
341
- public function getListeners ()
328
+ public function getListeners (): array |Data
342
329
{
343
330
return $ this ->data ['listeners ' ];
344
331
}
0 commit comments