8000 [HttpFoundation] Add getString to ParameterBag · Issue #41764 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[HttpFoundation] Add getString to ParameterBag #41764
Closed
@shyim

Description

@shyim

Description
After upgrade to 5.3 I have soo many PhpStan issues like

Parameter #1 $customerId of method Shopware\Administration\Controller\AdministrationController::isEmailValid() expects string, bool|float|int|string|null given.      

The ParameterBag has already methods like getBoolean / getInt. But not a getString. This would help to fix those issues really fast.

Example

$email = $request->request->getString('email');
4530

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0