Skip to content

Commit

Permalink
Fix codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
javihgil committed Apr 25, 2024
1 parent f352c7a commit 37dd886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"php": ">=8.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.40",
"friendsofphp/php-cs-fixer": "^3.54",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.5",
"symfony/config": "^5.4|^6.0|^7.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Twig/Extension/ActiveForRoutesExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getFunctions(): array
* Replaces twig compare function for adding "active" class:
* app.request.attributes.get('_route') starts with 'admin_dashboard' ? 'active': ''.
*/
public function activeForRoutes(string $routesStartsWith, bool $andCondition = null, string $class = 'active'): string
public function activeForRoutes(string $routesStartsWith, ?bool $andCondition = null, string $class = 'active'): string
{
$request = $this->requestStack->getCurrentRequest();

Expand Down

0 comments on commit 37dd886

Please sign in to comment.