You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function configureCrud(Crud $crud): Crud
{
return $crud
->setFilters([])
->setPaginatorPageSize(30);
}
the setFilters function takes an array or null as arguments.
in the code of the function itself, $ this-> dto-> setFiltersConfig ($ filters) is called;
and here $ filters should be FilterConfigDto $ filterConfig
from here I get the type mismatch execution.
Log:
EasyCorp\Bundle\EasyAdminBundle\Dto\CrudDto::setFiltersConfig(): Argument #1 ($filterConfig) must be of type EasyCorp\Bundle\EasyAdminBundle\Dto\FilterConfigDto, array given, called in /app/vendor/easycorp/easyadmin-bundle/src/Config/Crud.php on line 227
The text was updated successfully, but these errors were encountered:
Hi, i try to use this:
public function configureCrud(Crud $crud): Crud
{
return $crud
->setFilters([])
->setPaginatorPageSize(30);
}
the setFilters function takes an array or null as arguments.
in the code of the function itself, $ this-> dto-> setFiltersConfig ($ filters) is called;
and here $ filters should be FilterConfigDto $ filterConfig
from here I get the type mismatch execution.
Log:
EasyCorp\Bundle\EasyAdminBundle\Dto\CrudDto::setFiltersConfig(): Argument #1 ($filterConfig) must be of type EasyCorp\Bundle\EasyAdminBundle\Dto\FilterConfigDto, array given, called in /app/vendor/easycorp/easyadmin-bundle/src/Config/Crud.php on line 227
The text was updated successfully, but these errors were encountered: