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:
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
3939before_script :
4040 - " cat ./source/wordpress/wp-includes/version.php"
4141
4242script :
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"
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments