-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from tacman/tac
Add phpstan to tests
- Loading branch information
Showing
4 changed files
with
65 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: phpstan-CI | ||
on: | ||
[push, pull_request] | ||
jobs: | ||
phpstan: | ||
runs-on: ubuntu-latest | ||
name: PHPStan | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.4 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: composer install | ||
run: composer install | ||
- name: PHPStan | ||
run: vendor/bin/phpstan | ||
env: | ||
REQUIRE_DEV: true |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ on: | |
push: | ||
branches: | ||
- "master" | ||
- "tac" | ||
|
||
jobs: | ||
phpunit: | ||
|
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,41 @@ | ||
parameters: | ||
level: 3 | ||
inferPrivatePropertyTypeFromConstructor: true | ||
paths: | ||
- ./src/ | ||
|
||
excludePaths: | ||
# - 'src/Resources/skeleton' | ||
# - */cache/* | ||
analyse: | ||
- ./vendor | ||
|
||
reportUnmatchedIgnoredErrors: false | ||
# checkMissingIterableValueType: false | ||
# checkGenericClassInNonGenericObjectType: false | ||
ignoreErrors: | ||
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::canBeEnabled\(\)\.#' | ||
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::canBeDisabled\(\)\.#' | ||
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::addDefaultsIfNotSet\(\)\.#' | ||
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\)\.#' | ||
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::scalarNode\(\).#' | ||
# Only available in ArrayNodeDefinition which is given | ||
# False positive: clients are not dependencies of this project. | ||
# - | ||
# message: '#Call to an undefined method Symfony\Component\Config\Definition\Builder\NodeDefinition::children#' | ||
# path: ./src/Client/Provider | ||
# - | ||
# message: '#Return typehint of method KnpU\\OAuth2ClientBundle\\Client\\Provider\\[a-zA-Z0-9\\_]+::fetchUser\(\) has invalid type [a-zA-Z0-9\\_]#' | ||
# path: ./src/Client/Provider | ||
# False positive: using `::class` is not an error for those providers `::getProviderClass()` method. | ||
# - | ||
# message: '#Class [a-zA-Z0-9\\_]+ not found#' | ||
# path: ./src/DependencyInjection/Providers | ||
|
||
# The DependencyInjection returns are very complex to deal with | ||
# - | ||
# message: '#.*NodeParentInterface\|null.*#' | ||
# path: ./src/DependencyInjection/Providers | ||
# - | ||
# message: '#.*NodeDefinition::children.*#' | ||
# path: ./src/DependencyInjection |