Skip to content

Commit 0352649

Browse files
committed
Merge branch 'master' of github.com:php-stubs/wordpress-stubs
2 parents f891fb0 + cb42b1b commit 0352649

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@ install:
3434
php --ri sodium
3535
fi
3636
- "composer update --no-interaction"
37-
- "composer run-script post-install-cmd"
37+
- "composer run post-install-cmd"
3838

3939
before_script:
4040
- "cat ./source/wordpress/wp-includes/version.php"
4141

4242
script:
4343
# Generate stubs
44-
- "bash -x ./generate.sh"
44+
- "./generate.sh"
4545
# Check stubs syntax
4646
- "php -l wordpress-stubs.php"
4747
# Check stubs changes compared to repository
4848
- "git diff --exit-code"
4949
# Execute stubs
5050
- "php -f wordpress-stubs.php"
5151
# Analyse our code
52-
- "vendor/bin/phpstan"
52+
- "composer exec -- phpstan"

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
"phpdocumentor/reflection-docblock": "^5.3",
1616
"phpstan/phpstan": "^1.2"
1717
},
18-
"replace": {
19-
"giacocorsiglia/wordpress-stubs": "*"
20-
},
2118
"suggest": {
2219
"paragonie/sodium_compat": "Pure PHP implementation of libsodium",
2320
"symfony/polyfill-php73": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",

visitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ private static function getTypeNameFromType(Type $tagVariableType): ?string
774774

775775
private static function getTypeNameFromString(string $tagVariable): ?string
776776
{
777-
// PHPStan dosn't support typed array shapes (`int[]{...}`) so replace
777+
// PHPStan doesn't support typed array shapes (`int[]{...}`) so replace
778778
// typed arrays such as `int[]` with `array`.
779779
$tagVariableType = preg_replace('#[a-zA-Z0-9_]+\[\]#', 'array', $tagVariable);
780780

0 commit comments

Comments
 (0)