-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PES-2371: PHPstan - Packetery/Module lvl 2 and Packetery/Core strict …
…rules (#647) * PES-2325: Move phpstan from its own composer to main composer * PES-2325: Change phpstan bootstrap path in unit tests * PES-2325: Remove composer from phpstan folder, we don't need it anymore * PES-2325: Remove phpstan/vendor from .gitignore, its unnecessary * PES-2325: Change path to woocommerce stubs in phpstan config * PES-2325: Split phpstan configurations so we can check different levels for different folders * PES-2325: Fix phpstan errors in Packetery/Module on level 1 * PES-2325: Fix phpstan errors in Packetery/Module on level 2 * PES-2325: Set level 2 for Packetery/Module directory * PES-2325: Add phpstan/phpstan-strict-rules * PES-2325: Fix phpstan error in Packetery/Core with strict rules * PES-2325: Add phpstan strict rules in config for Packetery/Core and disable for Packetery/Module * PES-2325: Remove phpstan/vendor from .ecrc * PES-2325: PHPStan composer from github action * PES-2325: Update PHPStan newer version * PES-2325: Add phpstan var type for array - For some reason this array without var type causes a performance issue when checking phpstan * PES-2325: Add src/Packetery/Core scan directory * PES-2325: Update .lock * PES-2371: Add latest woocommerce stubs * PES-2371: PHPStan doesnt need to scan deps and bootstrap files for Packetery/Core * PES-2371: More readable code in the isPacketaShippingMethodActive method * PES-2371: Use constant instead string * PES-2371: Shortened if isset notation * PES-2371: Revert the changes to the dashboard widget to avoid unnecessarily altering the logic when it's not needed, while still satisfying PHPStan * PES-2371: Removing unnecessary variable * PES-2371: Nicer formating function setStoredUntil * PES-2371: Use of shorthand if statements instead longer --------- Co-authored-by: Adam Karpita <adam.karpita@packeta.com>
- Loading branch information
Showing
53 changed files
with
516 additions
and
515 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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
/.idea/ | ||
/vendor | ||
/phpcs/vendor | ||
/phpstan/vendor | ||
/temp/* | ||
!/temp/.gitignore | ||
/log/ | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,13 +1,3 @@ | ||
parameters: | ||
bootstrapFiles: | ||
- vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php | ||
- vendor/php-stubs/woocommerce-stubs/woocommerce-packages-stubs.php | ||
- ../constants.php | ||
level: 8 | ||
fileExtensions: | ||
- php | ||
paths: | ||
- ../src/Packetery/Core | ||
scanDirectories: | ||
- ../deps | ||
- ../src/Packetery/Module |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.