-
-
Notifications
You must be signed in to change notification settings - Fork 836
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* phpstan installation * remove old symfony 4.2 code * deprecate unused property * remove symfony 5.3 BC layer * remove bleedingEdge * remove phpstan/extension-installer * add phpstan-strict-rules * rename to phpstan.dist.neon * add phpstan job * add phpstan-symfony application loader * remove phpVersion * source code fixes PHPStan level 1 * test code fixes PHPStan level 1 * fix strings used for int Asserts * revert util change for PHP < 8.1 * remove mixed type usage * remove __callStatic * add baseline command * PHPStan level 2 * cleanup ControllerReflector class * remove bitwise operator usage * PHPStan level 3 * PHPStan level 4 * PHPStan level 5 * bump deprecation version Co-authored-by: Dominic Luidold <[email protected]> * Create dependabot.yml * Bump actions/cache from 3 to 4 Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * drop sensio/framework-extra-bundle (#2256) * add phpstan-baseline description * remove config section * move PropertyDescriberInterface errors to baseline * add phpstan.neon to gitignore --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Dominic Luidold <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8aa0ca0
commit fc5d60d
Showing
74 changed files
with
819 additions
and
658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Method Nelmio\\\\ApiDocBundle\\\\PropertyDescriber\\\\PropertyDescriberInterface\\:\\:describe\\(\\) invoked with 5 parameters, 2\\-3 required\\.$#" | ||
count: 1 | ||
path: src/PropertyDescriber/ArrayPropertyDescriber.php | ||
|
||
- | ||
message: "#^Method Nelmio\\\\ApiDocBundle\\\\PropertyDescriber\\\\PropertyDescriberInterface\\:\\:describe\\(\\) invoked with 5 parameters, 2\\-3 required\\.$#" | ||
count: 1 | ||
path: src/PropertyDescriber/CompoundPropertyDescriber.php | ||
|
||
- | ||
message: "#^Method Nelmio\\\\ApiDocBundle\\\\PropertyDescriber\\\\PropertyDescriberInterface\\:\\:describe\\(\\) invoked with 5 parameters, 2\\-3 required\\.$#" | ||
count: 1 | ||
path: src/PropertyDescriber/DictionaryPropertyDescriber.php | ||
|
||
- | ||
message: "#^Method Nelmio\\\\ApiDocBundle\\\\PropertyDescriber\\\\PropertyDescriberInterface\\:\\:describe\\(\\) invoked with 5 parameters, 2\\-3 required\\.$#" | ||
count: 1 | ||
path: src/PropertyDescriber/NullablePropertyDescriber.php | ||
|
||
- | ||
message: "#^Method Nelmio\\\\ApiDocBundle\\\\PropertyDescriber\\\\PropertyDescriberInterface\\:\\:describe\\(\\) invoked with 5 parameters, 2\\-3 required\\.$#" | ||
count: 1 | ||
path: src/PropertyDescriber/PropertyDescriber.php | ||
|
||
- | ||
message: "#^PHPDoc tag @param references unknown parameter\\: \\$context$#" | ||
count: 1 | ||
path: src/PropertyDescriber/PropertyDescriberInterface.php | ||
|
||
- | ||
message: "#^PHPDoc tag @param references unknown parameter\\: \\$schema$#" | ||
count: 1 | ||
path: src/PropertyDescriber/PropertyDescriberInterface.php | ||
|
||
- | ||
message: "#^Method Nelmio\\\\ApiDocBundle\\\\PropertyDescriber\\\\PropertyDescriberInterface\\:\\:describe\\(\\) invoked with 5 parameters, 2\\-3 required\\.$#" | ||
count: 1 | ||
path: src/PropertyDescriber/RequiredPropertyDescriber.php | ||
|
||
- | ||
message: "#^Call to method render\\(\\) on an unknown class Twig_Environment\\.$#" | ||
count: 2 | ||
path: src/Render/Html/HtmlOpenApiRenderer.php | ||
|
||
- | ||
message: "#^Class Twig_Environment not found\\.$#" | ||
count: 1 | ||
path: src/Render/Html/HtmlOpenApiRenderer.php | ||
|
||
- | ||
message: "#^Property Nelmio\\\\ApiDocBundle\\\\Render\\\\Html\\\\HtmlOpenApiRenderer\\:\\:\\$twig has unknown class Twig_Environment as its type\\.$#" | ||
count: 1 | ||
path: src/Render/Html/HtmlOpenApiRenderer.php | ||
|
||
- | ||
message: "#^Access to property \\$allowBlank on an unknown class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\QueryParam\\.$#" | ||
count: 1 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Access to property \\$description on an unknown class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\QueryParam\\.$#" | ||
count: 1 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Access to property \\$key on an unknown class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\QueryParam\\.$#" | ||
count: 1 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Access to property \\$key on an unknown class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\RequestParam\\.$#" | ||
count: 1 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Access to property \\$map on an unknown class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\QueryParam\\.$#" | ||
count: 2 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Access to property \\$nullable on an unknown class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\QueryParam\\.$#" | ||
count: 2 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Access to property \\$nullable on an unknown class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\RequestParam\\.$#" | ||
count: 1 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Access to property \\$strict on an unknown class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\QueryParam\\.$#" | ||
count: 1 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Access to property \\$strict on an unknown class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\RequestParam\\.$#" | ||
count: 1 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Call to method getName\\(\\) on an unknown class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\QueryParam\\.$#" | ||
count: 1 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Call to method getName\\(\\) on an unknown class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\RequestParam\\.$#" | ||
count: 1 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\QueryParam not found\\.$#" | ||
count: 3 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Class FOS\\\\RestBundle\\\\Controller\\\\Annotations\\\\RequestParam not found\\.$#" | ||
count: 2 | ||
path: src/RouteDescriber/FosRestDescriber.php | ||
|
||
- | ||
message: "#^Call to function method_exists\\(\\) with 'Hateoas\\\\\\\\Configuration\\\\\\\\Embedded' and 'getType' will always evaluate to true\\.$#" | ||
count: 1 | ||
path: tests/Functional/BazingaFunctionalTest.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
- vendor/phpstan/phpstan-phpunit/rules.neon | ||
- vendor/phpstan/phpstan-symfony/extension.neon | ||
- vendor/phpstan/phpstan-symfony/rules.neon | ||
- vendor/phpstan/phpstan-strict-rules/rules.neon | ||
|
||
parameters: | ||
level: 5 | ||
paths: | ||
- src | ||
- tests | ||
excludePaths: | ||
- tests/Functional/Entity/* | ||
- tests/Functional/EntityExcluded/* | ||
- tests/Functional/Controller/* | ||
dynamicConstantNames: | ||
- Symfony\Component\HttpKernel\Kernel::VERSION | ||
- Symfony\Component\HttpKernel\Kernel::VERSION_ID | ||
- Symfony\Component\HttpKernel\Kernel::MAJOR_VERSION | ||
- Symfony\Component\HttpKernel\Kernel::MINOR_VERSION | ||
- Symfony\Component\HttpKernel\Kernel::RELEASE_VERSION | ||
symfony: | ||
consoleApplicationLoader: tests/console-application.php | ||
strictRules: | ||
noVariableVariables: false # Neccessary for swagger-php integration | ||
universalObjectCratesClasses: | ||
- OpenApi\Context | ||
treatPhpDocTypesAsCertain: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.