File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,19 @@ install:
34
34
php --ri sodium
35
35
fi
36
36
- " composer update --no-interaction"
37
- - " composer run-script post-install-cmd"
37
+ - " composer run post-install-cmd"
38
38
39
39
before_script :
40
40
- " cat ./source/wordpress/wp-includes/version.php"
41
41
42
42
script :
43
43
# Generate stubs
44
- - " bash -x ./generate.sh"
44
+ - " ./generate.sh"
45
45
# Check stubs syntax
46
46
- " php -l wordpress-stubs.php"
47
47
# Check stubs changes compared to repository
48
48
- " git diff --exit-code"
49
49
# Execute stubs
50
50
- " php -f wordpress-stubs.php"
51
51
# Analyse our code
52
- - " vendor/bin/ phpstan"
52
+ - " composer exec -- phpstan"
Original file line number Diff line number Diff line change 15
15
"phpdocumentor/reflection-docblock" : " ^5.3" ,
16
16
"phpstan/phpstan" : " ^1.2"
17
17
},
18
- "replace" : {
19
- "giacocorsiglia/wordpress-stubs" : " *"
20
- },
21
18
"suggest" : {
22
19
"paragonie/sodium_compat" : " Pure PHP implementation of libsodium" ,
23
20
"symfony/polyfill-php73" : " Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions" ,
Original file line number Diff line number Diff line change @@ -774,7 +774,7 @@ private static function getTypeNameFromType(Type $tagVariableType): ?string
774
774
775
775
private static function getTypeNameFromString (string $ tagVariable ): ?string
776
776
{
777
- // PHPStan dosn 't support typed array shapes (`int[]{...}`) so replace
777
+ // PHPStan doesn 't support typed array shapes (`int[]{...}`) so replace
778
778
// typed arrays such as `int[]` with `array`.
779
779
$ tagVariableType = preg_replace ('#[a-zA-Z0-9_]+\[\]# ' , 'array ' , $ tagVariable );
780
780
You can’t perform that action at this time.
0 commit comments