Fix some self deprecation notices

This commit is contained in:
Yassine Guedidi
2025-01-18 23:56:06 +01:00
parent 5a8b581adf
commit 98ed784af3
47 changed files with 57 additions and 49 deletions

View File

@ -33,7 +33,7 @@ class UsernameFeedTokenConverter implements ParamConverterInterface
*
* Check, if object supported by our converter
*/
public function supports(ParamConverter $configuration)
public function supports(ParamConverter $configuration): bool
{
// If there is no manager, this means that only Doctrine DBAL is configured
// In this case we can do nothing and just return
@ -65,7 +65,7 @@ class UsernameFeedTokenConverter implements ParamConverterInterface
* @throws \InvalidArgumentException When route attributes are missing
* @throws NotFoundHttpException When object not found
*/
public function apply(Request $request, ParamConverter $configuration)
public function apply(Request $request, ParamConverter $configuration): bool
{
$username = $request->attributes->get('username');
$feedToken = $request->attributes->get('token');