Bee-Lab / BeelabUserBundle

:busts_in_silhouette: Simple user management for Symfony.
17 stars 5 forks source link

Return value of Beelab\UserBundle\Controller\UserController::getFilterFormName() must be of the type string, null returned #15

Open lbm-services opened 4 years ago

lbm-services commented 4 years ago

if you check for for: if (null !== $filter = $this->getFilterFormName())

then declaration / type hinting should be:

protected function getFilterFormName(): ?string

Problem solved.

garak commented 4 years ago

What's the case when such return value is null?