Added parsing of PHPDoc blocks based on AST and PHPDoc parser by phpstan. #82802
tests.yml
on: pull_request
Determine tests matrix
8s
Storybook tests
52s
Check plugin monorepo dep versions
29s
Static analysis
4m 37s
Matrix: run-tests
Publish coverage data
0s
Annotations
10 errors and 18 warnings
Static analysis:
tools/cli/helpers/doc-parser/src/class-doc-parser.php#L219
TypeError PhanTypePossiblyInvalidDimOffset Possibly invalid offset 'name' of $node->children of array type \ast\Node[]|array{__declId?:int,args?:\ast\Node,catches?:\ast\Node,class?:\ast\Node,cond?:\ast\Node|float|int|string,const?:\ast\Node|string,dim?:\ast\Node|float|int|string,declares?:\ast\Node,docComment?:?string,expr?:\ast\Node|float|int|string,false?:\ast\Node|float|int|string,finally?:\ast\Node,insteadof?:\ast\Node,key?:\ast\Node|float|int|string,left?:\ast\Node|float|int|string,method?:\ast\Node|float|int|string,name?:\ast\Node|float|int|string,params?:\ast\Node,prop?:\ast\Node|float|int|string,right?:\ast\Node|float|int|string,stmts?:?\ast\Node,try?:\ast\Node,true?:\ast\Node|float|int|string,type?:?\ast\Node,value?:\ast\Node|float|int|string,var?:\ast\Node|float|int|string}|float[]|int[]|null[]|string[]
|
Static analysis:
tools/cli/helpers/doc-parser/src/class-doc-parser.php#L222
TypeError PhanTypePossiblyInvalidDimOffset Possibly invalid offset 'expr' of $node->children of array type \ast\Node[]|array{__declId?:int,args?:\ast\Node,catches?:\ast\Node,class?:\ast\Node,cond?:\ast\Node|float|int|string,const?:\ast\Node|string,dim?:\ast\Node|float|int|string,declares?:\ast\Node,docComment?:?string,expr?:\ast\Node|float|int|string,false?:\ast\Node|float|int|string,finally?:\ast\Node,insteadof?:\ast\Node,key?:\ast\Node|float|int|string,left?:\ast\Node|float|int|string,method?:\ast\Node|float|int|string,name?:\ast\Node|float|int|string,params?:\ast\Node,prop?:\ast\Node|float|int|string,right?:\ast\Node|float|int|string,stmts?:?\ast\Node,try?:\ast\Node,true?:\ast\Node|float|int|string,type?:?\ast\Node,value?:\ast\Node|float|int|string,var?:\ast\Node|float|int|string}|float[]|int[]|null[]|string[]
|
Static analysis:
tools/cli/helpers/doc-parser/src/class-doc-parser.php#L222
TypeError PhanTypePossiblyInvalidDimOffset Possibly invalid offset 'name' of $node->children['expr']->children of array type \ast\Node[]|array{__declId?:int,args?:\ast\Node,catches?:\ast\Node,class?:\ast\Node,cond?:\ast\Node|float|int|string,const?:\ast\Node|string,dim?:\ast\Node|float|int|string,declares?:\ast\Node,docComment?:?string,expr?:\ast\Node|float|int|string,false?:\ast\Node|float|int|string,finally?:\ast\Node,insteadof?:\ast\Node,key?:\ast\Node|float|int|string,left?:\ast\Node|float|int|string,method?:\ast\Node|float|int|string,name?:\ast\Node|float|int|string,params?:\ast\Node,prop?:\ast\Node|float|int|string,right?:\ast\Node|float|int|string,stmts?:?\ast\Node,try?:\ast\Node,true?:\ast\Node|float|int|string,type?:?\ast\Node,value?:\ast\Node|float|int|string,var?:\ast\Node|float|int|string}|float[]|int[]|null[]|string[]
|
Static analysis:
tools/cli/helpers/doc-parser/src/class-doc-parser.php#L225
TypeError PhanTypePossiblyInvalidDimOffset Possibly invalid offset 'args' of $node->children of array type \ast\Node[]|array{__declId?:int,args?:\ast\Node,catches?:\ast\Node,class?:\ast\Node,cond?:\ast\Node|float|int|string,const?:\ast\Node|string,dim?:\ast\Node|float|int|string,declares?:\ast\Node,docComment?:?string,expr?:\ast\Node|float|int|string,false?:\ast\Node|float|int|string,finally?:\ast\Node,insteadof?:\ast\Node,key?:\ast\Node|float|int|string,left?:\ast\Node|float|int|string,method?:\ast\Node|float|int|string,name?:\ast\Node|float|int|string,params?:\ast\Node,prop?:\ast\Node|float|int|string,right?:\ast\Node|float|int|string,stmts?:?\ast\Node,try?:\ast\Node,true?:\ast\Node|float|int|string,type?:?\ast\Node,value?:\ast\Node|float|int|string,var?:\ast\Node|float|int|string}|float[]|int[]|null[]|string[]
|
Static analysis:
tools/cli/helpers/doc-parser/src/class-doc-parser.php#L268
TypeError PhanTypePossiblyInvalidDimOffset Possibly invalid offset 'expr' of $tree->children of array type \ast\Node[]|array{__declId?:int,args?:\ast\Node,catches?:\ast\Node,class?:\ast\Node,cond?:\ast\Node|float|int|string,const?:\ast\Node|string,dim?:\ast\Node|float|int|string,declares?:\ast\Node,docComment?:?string,expr?:\ast\Node|float|int|string,false?:\ast\Node|float|int|string,finally?:\ast\Node,insteadof?:\ast\Node,key?:\ast\Node|float|int|string,left?:\ast\Node|float|int|string,method?:\ast\Node|float|int|string,name?:\ast\Node|float|int|string,params?:\ast\Node,prop?:\ast\Node|float|int|string,right?:\ast\Node|float|int|string,stmts?:?\ast\Node,try?:\ast\Node,true?:\ast\Node|float|int|string,type?:?\ast\Node,value?:\ast\Node|float|int|string,var?:\ast\Node|float|int|string}|float[]|int[]|null[]|string[]
|
Static analysis:
tools/cli/helpers/doc-parser/src/class-doc-parser.php#L268
TypeError PhanTypePossiblyInvalidDimOffset Possibly invalid offset 'name' of $tree->children['expr']->children of array type \ast\Node[]|array{__declId?:int,args?:\ast\Node,catches?:\ast\Node,class?:\ast\Node,cond?:\ast\Node|float|int|string,const?:\ast\Node|string,dim?:\ast\Node|float|int|string,declares?:\ast\Node,docComment?:?string,expr?:\ast\Node|float|int|string,false?:\ast\Node|float|int|string,finally?:\ast\Node,insteadof?:\ast\Node,key?:\ast\Node|float|int|string,left?:\ast\Node|float|int|string,method?:\ast\Node|float|int|string,name?:\ast\Node|float|int|string,params?:\ast\Node,prop?:\ast\Node|float|int|string,right?:\ast\Node|float|int|string,stmts?:?\ast\Node,try?:\ast\Node,true?:\ast\Node|float|int|string,type?:?\ast\Node,value?:\ast\Node|float|int|string,var?:\ast\Node|float|int|string}|float[]|int[]|null[]|string[]
|
Static analysis:
tools/cli/helpers/doc-parser/src/class-doc-parser.php#L272
TypeError PhanTypePossiblyInvalidDimOffset Possibly invalid offset 'args' of $tree->children of array type \ast\Node[]|array{__declId?:int,args?:\ast\Node,catches?:\ast\Node,class?:\ast\Node,cond?:\ast\Node|float|int|string,const?:\ast\Node|string,dim?:\ast\Node|float|int|string,declares?:\ast\Node,docComment?:?string,expr?:\ast\Node|float|int|string,false?:\ast\Node|float|int|string,finally?:\ast\Node,insteadof?:\ast\Node,key?:\ast\Node|float|int|string,left?:\ast\Node|float|int|string,method?:\ast\Node|float|int|string,name?:\ast\Node|float|int|string,params?:\ast\Node,prop?:\ast\Node|float|int|string,right?:\ast\Node|float|int|string,stmts?:?\ast\Node,try?:\ast\Node,true?:\ast\Node|float|int|string,type?:?\ast\Node,value?:\ast\Node|float|int|string,var?:\ast\Node|float|int|string}|float[]|int[]|null[]|string[]
|
Static analysis:
tools/cli/helpers/doc-parser/src/class-doc-parser.php#L274
TypeError PhanImpossibleCondition Impossible attempt to cast $argument of type int to \Automattic\Jetpack\ast\Node
|
Static analysis:
tools/cli/helpers/doc-parser/src/class-doc-parser.php#L274
UndefError PhanUndeclaredClassInstanceof Checking instanceof against undeclared class \Automattic\Jetpack\ast\Node
Suggestion: Did you mean interface \PHPStan\PhpDocParser\Ast\Node or interface \PhpParser\Node or class \SebastianBergmann\CodeCoverage\Report\Xml\Node or class \ast\Node
|
Static analysis:
tools/cli/helpers/doc-parser/src/class-doc-parser.php#L275
TypeError PhanTypeMismatchArgument Argument 1 ($node) is $argument of type \Automattic\Jetpack\ast\Node but \Automattic\Jetpack\Doc_Parser::flatten_ast_node() takes \ast\Node defined at src/class-doc-parser.php:211
|
Determine tests matrix
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Check plugin monorepo dep versions
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Storybook tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 8.2 WP previous
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 7.4 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 7.4 WP latest with WooCommerce
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 7.2 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 8.2 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 8.0 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 8.3 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 8.2 WP trunk
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 8.4 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 7.3 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 8.1 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
JS tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP tests: PHP 8.1 WP latest with wpcomsh
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Code coverage
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Static analysis
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|