Skip to content

Commit

Permalink
🎨 adapt php-cs-fixer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Oct 22, 2023
1 parent 0ba6c34 commit bee0d7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP71Migration:risky' => true,
'@PHP80Migration:risky' => true,
'@PHPUnit84Migration:risky' => true,
'ordered_imports' => true,
'declare_strict_types' => false,
Expand Down
2 changes: 1 addition & 1 deletion src/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getFormData(string $name, string $field): mixed
* You can pass an optional type, if you want to ensure that a view
* of the same form type is returned.
*/
public function getFormView(string $name, ?string $type = null): FormView
public function getFormView(string $name, string $type = null): FormView
{
return $this->getForm($name, $type)->createView();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Twig/FilterRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function has(string $name): bool
}
$session = $request->getSession();

return $session->has(('filter.'.$name)) && null !== $session->get(('filter.'.$name));
return $session->has('filter.'.$name) && null !== $session->get('filter.'.$name);
}

public function isSet(string $prefix, string $name): bool
Expand Down

0 comments on commit bee0d7b

Please sign in to comment.