Skip to content

Commit 0436fe9

Browse files
committed
Replace vendored wp-cli-stubs file with dependency
1 parent 76dcd3f commit 0436fe9

File tree

5 files changed

+54
-4906
lines changed

5 files changed

+54
-4906
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"phpcompatibility/php-compatibility": "*",
4545
"php-parallel-lint/php-parallel-lint": "*",
4646
"10up/wp_mock": "*",
47-
"mikey179/vfsstream": "*"
47+
"mikey179/vfsstream": "*",
48+
"php-stubs/wp-cli-stubs": "^2.12"
4849
},
4950
"autoload": {
5051
"psr-4": {

composer.lock

Lines changed: 45 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
pname = "${name}-composer-deps";
2525
version = version;
2626
src = composerSrc;
27-
vendorHash = "sha256-JSt4PG1AVZGA1SjDsigp1O3VRMUArlylpVcizlhspD8=";
27+
vendorHash = "sha256-22HRb3w2JLmoqi3AtX6RpVCk7QAdMOx0MuOFBzubziU=";
2828
});
2929
composerVendorDev = php.mkComposerVendor (finalAttrs: {
3030
composerNoDev = false;
3131
pname = "${name}-composer-deps-dev";
3232
version = version;
3333
src = composerSrc;
34-
vendorHash = "sha256-1zMEsGjPsV+40BzmixwDS1FsjZgzjbV/Dmgsqik74LU=";
34+
vendorHash = "sha256-P5F8UWN4KPAA5OegcrhZWE/dyeaKUrg2EdHnSM5MMxo=";
3535
});
3636
wp2staticSrc = pkgs.lib.cleanSourceWith {
3737
src = wp2staticSrcDev;

phpstan.neon

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ parameters:
1212
- %currentWorkingDirectory%/wp2static.php
1313
scanFiles:
1414
- %currentWorkingDirectory%/tests/phpstan/bootstrap.php
15-
# TODO Use https://github.com/php-stubs/wp-cli-stubs
16-
- %currentWorkingDirectory%/tests/phpstan/wp-cli-stubs-2.2.0.php
15+
- %currentWorkingDirectory%/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
16+
- %currentWorkingDirectory%/vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php
17+
- %currentWorkingDirectory%/vendor/php-stubs/wp-cli-stubs/wp-cli-commands-stubs.php
18+
- %currentWorkingDirectory%/vendor/php-stubs/wp-cli-stubs/wp-cli-i18n-stubs.php
19+
- %currentWorkingDirectory%/vendor/php-stubs/wp-cli-stubs/wp-cli-tools-stubs.php
1720
ignoreErrors:
1821
# TODO I should really develop a tiny Request Handler.
1922
# https://gist.github.com/nicolas-grekas/1028251#improving-native-php-interface

0 commit comments

Comments
 (0)