Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz committed Nov 17, 2024
1 parent 56485d9 commit 80626f8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 39 deletions.
7 changes: 7 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ parameters:
# Ces fichiers utilisent des alias de classes
- sources/AppBundle/Twig/AssetsExtension.php
- sources/AppBundle/Twig/TwigExtension.php

ignoreErrors:
-
message: '#^Method AppBundle\\Controller\\SiteBaseController\:\:render\(\) overrides @final method Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller\:\:render\(\)\.$#'
identifier: method.parentMethodFinalByPhpDoc
count: 1
path: sources/AppBundle/Controller/SiteBaseController.php
31 changes: 0 additions & 31 deletions sources/Afup/Bootstrap/Simpletest/Functional.php

This file was deleted.

4 changes: 0 additions & 4 deletions sources/Afup/Bootstrap/Simpletest/Unit.php

This file was deleted.

2 changes: 1 addition & 1 deletion sources/Afup/Utils/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ private function loadSymfonyParameters(): array

public function obtenir($cle)
{
return self::$values[$cle];
return self::$values[$cle] ?? null;
}
}
3 changes: 0 additions & 3 deletions sources/AppBundle/Controller/SiteBaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ public function setDefaultBlocks(array $blocks)
$this->defaultBlocks = $blocks;
}

/**
* @param Configuration $conf
*/
public function setConfiguration(Configuration $conf)
{
$this->legacyConfiguration = $conf;
Expand Down

0 comments on commit 80626f8

Please sign in to comment.