-
Notifications
You must be signed in to change notification settings - Fork 3
Introduction of phpstan #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ff304a2
switch from psalm to phpstan.
Chrico da38ad5
switch from syde/phpcs to inpsyde/php-coding-standards to support PHP…
Chrico d638ed2
remove psalm.xml.
Chrico faed10a
Package // revert changes of da60d75 which introduced array_values() …
Chrico 7687fce
composer.json // add "swissspidy/phpstan-no-private" and "phpstan/php…
Chrico cb1c7f9
Update .github/workflows/php-qa.yml
Chrico 1d3608f
LibraryProperties // revert changes done for new syde/phpcs coding st…
Chrico 77567a7
Merge remote-tracking branch 'origin/feature/phpstan' into feature/ph…
Chrico fe7709e
php-qa.yml // replace paths: '**psalm.xml' with '**phpstan.neon.xml'.
Chrico 0995b5e
composer.json // update version constraint for phpstan and fixed "scr…
Chrico 25d32c2
replaced psalm-assert-if-true, psalm-assert-if-false, psalm-import-ty…
Chrico f5153c1
tests // add PHPStan to "tests"-folder.
Chrico 3e52f99
PackageTest // remove nullable return and added typecast to ensure a …
Chrico f005470
phpcs
Chrico 641b840
ServiceExtensions // enable phpcs rules again.
Chrico 9fec908
Update .github/workflows/php-unit-tests.yml
Chrico 6eecb46
Update tests/unit/Container/ReadOnlyContainerTest.php
Chrico 81f58ff
Update tests/unit/PackageTest.php
Chrico d5064db
address PHPStan issues
tfrommen 13d9411
include PHP 8.4 in CI
tfrommen aa4c629
only lint on PHP 8.4, for now
tfrommen 5ceef1a
refactor
tfrommen 36d2799
use wp-stubs
tfrommen d42037f
Merge pull request #61 from inpsyde/feature/phpstan-wp-stubs
tfrommen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,11 +1,13 @@ | ||
| * text eol=lf | ||
|
|
||
| tests export-ignore | ||
| .psalm export-ignore | ||
| .github export-ignore | ||
| .gitattributes export-ignore | ||
| .gitignore export-ignore | ||
| README.md export-ignore | ||
| phpcs.xml.dist export-ignore | ||
| phpunit.xml.dist export-ignore | ||
| psalm.xml export-ignore | ||
| *.php diff=php | ||
|
|
||
| /.github/ export-ignore | ||
| /docs/ export-ignore | ||
| /tests/ export-ignore | ||
| /.gitattributes export-ignore | ||
| /.gitignore export-ignore | ||
| /README.md export-ignore | ||
| /phpcs.xml.dist export-ignore | ||
| /phpstan.neon.dist export-ignore | ||
| /phpunit.xml.dist export-ignore |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,19 @@ | ||
| includes: | ||
| - vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
| - vendor/phpstan/phpstan-mockery/extension.neon | ||
| - vendor/phpstan/phpstan-phpunit/extension.neon | ||
| - vendor/swissspidy/phpstan-no-private/rules.neon | ||
| parameters: | ||
| level: 8 | ||
| dynamicConstantNames: | ||
| - WP_DEBUG | ||
| scanFiles: | ||
| - vendor/inpsyde/wp-stubs-versions/latest.php | ||
| paths: | ||
| - src/ | ||
| - tests/ | ||
| treatPhpDocTypesAsCertain: false | ||
| ignoreErrors: | ||
| - | ||
| message: '#Call to static method PHPUnit\\Framework\\Assert::assertInstanceOf\(\) .* will always evaluate to true.#' | ||
| path: tests/* |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.