-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make CI green * Try PHP74 * Different version of psalm * fix
- Loading branch information
Showing
6 changed files
with
99 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,80 @@ | ||
on: [push, pull_request] | ||
on: [pull_request] | ||
name: Static analysis | ||
|
||
jobs: | ||
phpstan: | ||
name: PHPStan | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: PHPStan | ||
uses: docker://oskarstark/phpstan-ga | ||
env: | ||
REQUIRE_DEV: true | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
args: analyze --no-progress | ||
php-version: 8.0 | ||
coverage: none | ||
tools: phpstan:0.12.92, cs2pr | ||
|
||
- name: Download dependencies | ||
uses: ramsey/composer-install@v1 | ||
|
||
- name: PHPStan | ||
run: phpstan analyze --no-progress --error-format=checkstyle | cs2pr | ||
|
||
php-cs-fixer: | ||
name: PHP-CS-Fixer | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: PHP-CS-Fixer | ||
uses: docker://oskarstark/php-cs-fixer-ga | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
args: --dry-run --diff-format udiff | ||
php-version: 8.0 | ||
coverage: none | ||
tools: php-cs-fixer:2.19.0, cs2pr | ||
|
||
- name: PHP-CS-Fixer | ||
run: php-cs-fixer fix --dry-run --format=checkstyle | cs2pr | ||
|
||
psalm: | ||
name: Psalm | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.0 | ||
coverage: none | ||
tools: vimeo/psalm:4.8.1 | ||
|
||
- name: Download dependencies | ||
uses: ramsey/composer-install@v1 | ||
|
||
- name: Psalm | ||
uses: docker://vimeo/psalm-github-actions | ||
run: psalm --no-progress --output-format=github | ||
|
||
composer-normalize: | ||
name: Composer Normalize | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.0 | ||
coverage: none | ||
tools: composer-normalize | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Normalize | ||
run: composer-normalize --dry-run |
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 |
---|---|---|
@@ -1,8 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="4.3.1@2feba22a005a18bf31d4c7b9bdb9252c73897476"> | ||
<files psalm-version="4.8.1@f73f2299dbc59a3e6c4d66cff4605176e728ee69"> | ||
<file src="src/ServiceMock.php"> | ||
<UndefinedInterfaceMethod occurrences="1"> | ||
<code>getWrappedValueHolderValue</code> | ||
</UndefinedInterfaceMethod> | ||
</file> | ||
<file src="vendor/laminas/laminas-code/src/Generator/ClassGenerator.php"> | ||
<ParseError occurrences="6"> | ||
<code>$interface</code> | ||
<code>$interface</code> | ||
<code>)</code> | ||
<code>)</code> | ||
<code>fn</code> | ||
<code>fn</code> | ||
</ParseError> | ||
</file> | ||
<file src="vendor/laminas/laminas-code/src/Generator/TypeGenerator.php"> | ||
<ParseError occurrences="13"> | ||
<code>$left</code> | ||
<code>$type</code> | ||
<code>$type</code> | ||
<code>$type</code> | ||
<code>)</code> | ||
<code>)</code> | ||
<code>)</code> | ||
<code>)</code> | ||
<code>,</code> | ||
<code>,</code> | ||
<code>,</code> | ||
<code>fn</code> | ||
<code>fn</code> | ||
</ParseError> | ||
</file> | ||
<file src="vendor/laminas/laminas-code/src/Generator/TypeGenerator/AtomicType.php"> | ||
<ParseError occurrences="3"> | ||
<code>$type</code> | ||
<code>)</code> | ||
<code>fn</code> | ||
</ParseError> | ||
</file> | ||
</files> |
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