Skip to content

Commit 3d6ab04

Browse files
authored
[PHPStan] Aligned baseline after PHPStan release (#269)
For more details see #269 Key changes: * [PHPStan] Aligned baseline after PHPStan release
1 parent 33590a1 commit 3d6ab04

File tree

2 files changed

+47
-23
lines changed

2 files changed

+47
-23
lines changed

ignore-gte-php8.1-errors.neon

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,15 @@ parameters:
55
identifier: notIdentical.alwaysTrue
66
count: 1
77
path: src/lib/RichText/TextExtractor/FullTextExtractor.php
8+
9+
-
10+
message: '#^Parameter \#2 \$child of method DOMNode\:\:replaceChild\(\) expects TNode of DOMNode, DOMNameSpaceNode\|DOMNode given\.$#'
11+
identifier: argument.type
12+
count: 1
13+
path: src/lib/RichText/XMLSanitizer.php
14+
15+
-
16+
message: '#^Cannot call method removeChild\(\) on DOMNode\|null\.$#'
17+
identifier: method.nonObject
18+
count: 1
19+
path: tests/lib/RichText/Converter/Xslt/BaseTest.php

phpstan-baseline.neon

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ parameters:
493493
path: src/lib/Configuration/UI/Mapper/OnlineEditorConfigMapper.php
494494

495495
-
496-
message: '#^Call to an undefined method DOMNode\:\:setAttribute\(\)\.$#'
496+
message: '#^Call to an undefined method DOMNameSpaceNode\|DOMNode\:\:setAttribute\(\)\.$#'
497497
identifier: method.notFound
498498
count: 2
499499
path: src/lib/FieldType/RichText/RichTextStorage.php
@@ -751,7 +751,7 @@ parameters:
751751
path: src/lib/Persistence/Legacy/RichTextFieldValueConverter.php
752752

753753
-
754-
message: '#^Argument of an invalid type DOMNodeList\<DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
754+
message: '#^Argument of an invalid type DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
755755
identifier: foreach.nonIterable
756756
count: 1
757757
path: src/lib/RichText/Converter/Link.php
@@ -769,7 +769,13 @@ parameters:
769769
path: src/lib/RichText/Converter/Link.php
770770

771771
-
772-
message: '#^Argument of an invalid type DOMNodeList\<DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
772+
message: '#^Access to an undefined property DOMNameSpaceNode\|DOMNode\:\:\$textContent\.$#'
773+
identifier: property.notFound
774+
count: 2
775+
path: src/lib/RichText/Converter/ProgramListing.php
776+
777+
-
778+
message: '#^Argument of an invalid type DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
773779
identifier: foreach.nonIterable
774780
count: 1
775781
path: src/lib/RichText/Converter/ProgramListing.php
@@ -805,13 +811,13 @@ parameters:
805811
path: src/lib/RichText/Converter/Render.php
806812

807813
-
808-
message: '#^Cannot access property \$length on DOMNodeList\<DOMNode\>\|false\.$#'
814+
message: '#^Cannot access property \$length on DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false\.$#'
809815
identifier: property.nonObject
810816
count: 1
811817
path: src/lib/RichText/Converter/Render.php
812818

813819
-
814-
message: '#^Cannot call method item\(\) on DOMNodeList\<DOMNode\>\|false\.$#'
820+
message: '#^Cannot call method item\(\) on DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false\.$#'
815821
identifier: method.nonObject
816822
count: 1
817823
path: src/lib/RichText/Converter/Render.php
@@ -841,7 +847,7 @@ parameters:
841847
path: src/lib/RichText/Converter/Render.php
842848

843849
-
844-
message: '#^Parameter \#1 \$configHash of method Ibexa\\FieldTypeRichText\\RichText\\Converter\\Render\:\:extractHash\(\) expects DOMNode, DOMNode\|null given\.$#'
850+
message: '#^Parameter \#1 \$configHash of method Ibexa\\FieldTypeRichText\\RichText\\Converter\\Render\:\:extractHash\(\) expects DOMNode, DOMNameSpaceNode\|DOMNode\|null given\.$#'
845851
identifier: argument.type
846852
count: 1
847853
path: src/lib/RichText/Converter/Render.php
@@ -853,7 +859,7 @@ parameters:
853859
path: src/lib/RichText/Converter/Render.php
854860

855861
-
856-
message: '#^Argument of an invalid type DOMNodeList\<DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
862+
message: '#^Argument of an invalid type DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
857863
identifier: foreach.nonIterable
858864
count: 1
859865
path: src/lib/RichText/Converter/Render/Embed.php
@@ -955,13 +961,13 @@ parameters:
955961
path: src/lib/RichText/Converter/Render/Embed.php
956962

957963
-
958-
message: '#^Argument of an invalid type DOMNodeList\<DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
964+
message: '#^Argument of an invalid type DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
959965
identifier: foreach.nonIterable
960966
count: 2
961967
path: src/lib/RichText/Converter/Render/Template.php
962968

963969
-
964-
message: '#^Cannot access property \$length on DOMNodeList\<DOMNode\>\|false\.$#'
970+
message: '#^Cannot access property \$length on DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false\.$#'
965971
identifier: property.nonObject
966972
count: 1
967973
path: src/lib/RichText/Converter/Render/Template.php
@@ -991,7 +997,13 @@ parameters:
991997
path: src/lib/RichText/Converter/Render/Template.php
992998

993999
-
994-
message: '#^Parameter \#3 \$template of method Ibexa\\FieldTypeRichText\\RichText\\Converter\\Render\\Template\:\:processTemplate\(\) expects DOMElement, DOMNode given\.$#'
1000+
message: '#^Parameter \#1 \$node of method Ibexa\\FieldTypeRichText\\RichText\\Converter\\Render\\Template\:\:getCustomTemplateContent\(\) expects DOMNode, DOMNameSpaceNode\|DOMNode given\.$#'
1001+
identifier: argument.type
1002+
count: 1
1003+
path: src/lib/RichText/Converter/Render/Template.php
1004+
1005+
-
1006+
message: '#^Parameter \#3 \$template of method Ibexa\\FieldTypeRichText\\RichText\\Converter\\Render\\Template\:\:processTemplate\(\) expects DOMElement, DOMNameSpaceNode\|DOMNode given\.$#'
9951007
identifier: argument.type
9961008
count: 1
9971009
path: src/lib/RichText/Converter/Render/Template.php
@@ -1111,7 +1123,7 @@ parameters:
11111123
path: src/lib/RichText/Normalizer/DocumentTypeDefinition.php
11121124

11131125
-
1114-
message: '#^Argument of an invalid type DOMNodeList\<DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
1126+
message: '#^Argument of an invalid type DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
11151127
identifier: foreach.nonIterable
11161128
count: 1
11171129
path: src/lib/RichText/RelationProcessor.php
@@ -1255,7 +1267,7 @@ parameters:
12551267
path: src/lib/RichText/TextExtractor/ShortTextExtractor.php
12561268

12571269
-
1258-
message: '#^Argument of an invalid type DOMNodeList\<DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
1270+
message: '#^Argument of an invalid type DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
12591271
identifier: foreach.nonIterable
12601272
count: 1
12611273
path: src/lib/RichText/Validator/InternalLinkValidator.php
@@ -1279,7 +1291,7 @@ parameters:
12791291
path: src/lib/RichText/Validator/InternalLinkValidator.php
12801292

12811293
-
1282-
message: '#^Argument of an invalid type DOMNodeList\<DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
1294+
message: '#^Argument of an invalid type DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false supplied for foreach, only iterables are supported\.$#'
12831295
identifier: foreach.nonIterable
12841296
count: 1
12851297
path: src/lib/RichText/Validator/Validator.php
@@ -1297,7 +1309,7 @@ parameters:
12971309
path: src/lib/RichText/Validator/Validator.php
12981310

12991311
-
1300-
message: '#^Parameter \#1 \$failedAssert of method Ibexa\\FieldTypeRichText\\RichText\\Validator\\Validator\:\:formatSVRLFailure\(\) expects DOMElement, DOMNode given\.$#'
1312+
message: '#^Parameter \#1 \$failedAssert of method Ibexa\\FieldTypeRichText\\RichText\\Validator\\Validator\:\:formatSVRLFailure\(\) expects DOMElement, DOMNameSpaceNode\|DOMNode given\.$#'
13011313
identifier: argument.type
13021314
count: 1
13031315
path: src/lib/RichText/Validator/Validator.php
@@ -1374,6 +1386,12 @@ parameters:
13741386
count: 1
13751387
path: src/lib/RichText/Validator/ValidatorDispatcher.php
13761388

1389+
-
1390+
message: '#^Access to an undefined property DOMNameSpaceNode\|DOMNode\:\:\$textContent\.$#'
1391+
identifier: property.notFound
1392+
count: 1
1393+
path: src/lib/RichText/XMLSanitizer.php
1394+
13771395
-
13781396
message: '#^Method Ibexa\\FieldTypeRichText\\RichText\\XmlBase\:\:startRecordingErrors\(\) has no return type specified\.$#'
13791397
identifier: missingType.return
@@ -2803,29 +2821,23 @@ parameters:
28032821
path: tests/lib/RichText/Converter/Xslt/BaseTest.php
28042822

28052823
-
2806-
message: '#^Cannot access property \$length on DOMNodeList\<DOMNode\>\|false\.$#'
2824+
message: '#^Cannot access property \$length on DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false\.$#'
28072825
identifier: property.nonObject
28082826
count: 1
28092827
path: tests/lib/RichText/Converter/Xslt/BaseTest.php
28102828

28112829
-
2812-
message: '#^Cannot access property \$parentNode on DOMNode\|null\.$#'
2830+
message: '#^Cannot access property \$parentNode on DOMNameSpaceNode\|DOMNode\|null\.$#'
28132831
identifier: property.nonObject
28142832
count: 1
28152833
path: tests/lib/RichText/Converter/Xslt/BaseTest.php
28162834

28172835
-
2818-
message: '#^Cannot call method item\(\) on DOMNodeList\<DOMNode\>\|false\.$#'
2836+
message: '#^Cannot call method item\(\) on DOMNodeList\<DOMNameSpaceNode\|DOMNode\>\|false\.$#'
28192837
identifier: method.nonObject
28202838
count: 2
28212839
path: tests/lib/RichText/Converter/Xslt/BaseTest.php
28222840

2823-
-
2824-
message: '#^Cannot call method removeChild\(\) on DOMNode\|null\.$#'
2825-
identifier: method.nonObject
2826-
count: 1
2827-
path: tests/lib/RichText/Converter/Xslt/BaseTest.php
2828-
28292841
-
28302842
message: '#^Method Ibexa\\Tests\\FieldTypeRichText\\RichText\\Converter\\Xslt\\BaseTest\:\:formatValidationErrors\(\) has no return type specified\.$#'
28312843
identifier: missingType.return

0 commit comments

Comments
 (0)