You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Dropped deprecated OnlineEditorCustomAttributesExtractor class
* Defined Xslt::$xsltProcessor property so it's not dynamic. Creation of dynamic property Ibexa\FieldTypeRichText\RichText\Converter\Xslt::$xsltProcessor is deprecated
* Improved quality of Xslt Converter implementation
* Dropped deprecated support for not configured custom tag. CustomTagsValidator will now return a validation error when a document contains not configured custom tag
* Improved CustomTagsValidator class code quality
* [Tests] Improved CustomTagsValidatorTest and RichTextTest code quality
* [PHPStan] Aligned baseline with the changes
message:"#^Access to an undefined property Ibexa\\\\FieldTypeRichText\\\\RichText\\\\Converter\\\\Xslt\\:\\:\\$xsltProcessor\\.$#"
895
-
count:1
896
-
path:src/lib/RichText/Converter/Xslt.php
897
-
898
893
-
899
894
message:"#^Cannot access property \\$firstChild on DOMElement\\|null\\.$#"
900
895
count:1
@@ -905,31 +900,11 @@ parameters:
905
900
count:1
906
901
path:src/lib/RichText/Converter/Xslt.php
907
902
908
-
-
909
-
message:"#^Method Ibexa\\\\FieldTypeRichText\\\\RichText\\\\Converter\\\\Xslt\\:\\:__construct\\(\\) has parameter \\$customStylesheets with no value type specified in iterable type array\\.$#"
910
-
count:1
911
-
path:src/lib/RichText/Converter/Xslt.php
912
-
913
-
-
914
-
message:"#^Method Ibexa\\\\FieldTypeRichText\\\\RichText\\\\Converter\\\\Xslt\\:\\:convert\\(\\) should return DOMDocument but returns DOMDocument\\|false\\.$#"
915
-
count:1
916
-
path:src/lib/RichText/Converter/Xslt.php
917
-
918
-
-
919
-
message:"#^Method Ibexa\\\\FieldTypeRichText\\\\RichText\\\\Converter\\\\Xslt\\:\\:getSortedCustomStylesheets\\(\\) return type has no value type specified in iterable type array\\.$#"
920
-
count:1
921
-
path:src/lib/RichText/Converter/Xslt.php
922
-
923
903
-
924
904
message:"#^Parameter \\#1 \\$source of method DOMDocument\\:\\:loadXML\\(\\) expects string, string\\|false given\\.$#"
925
905
count:1
926
906
path:src/lib/RichText/Converter/Xslt.php
927
907
928
-
-
929
-
message:"#^Property Ibexa\\\\FieldTypeRichText\\\\RichText\\\\Converter\\\\Xslt\\:\\:\\$customStylesheets type has no value type specified in iterable type array\\.$#"
930
-
count:1
931
-
path:src/lib/RichText/Converter/Xslt.php
932
-
933
908
-
934
909
message:"#^Cannot call method lookupNamespaceURI\\(\\) on DOMElement\\|null\\.$#"
935
910
count:2
@@ -1245,11 +1220,6 @@ parameters:
1245
1220
count:1
1246
1221
path:src/lib/RichText/XmlBase.php
1247
1222
1248
-
-
1249
-
message:"#^Parameter \\#2 \\$desc of method Ibexa\\\\FieldTypeRichText\\\\Translation\\\\Extractor\\\\OnlineEditorCustomAttributesExtractor\\:\\:createMessage\\(\\) expects string, int\\|string given\\.$#"
message:"#^Method Ibexa\\\\Tests\\\\FieldTypeRichText\\\\RichText\\\\Validator\\\\CustomTagsValidatorTest\\:\\:testValidateDocumentAcceptsLegacyTags\\(\\) has no return type specified\\.$#"
Copy file name to clipboardExpand all lines: src/lib/RichText/Converter/Xslt.php
+19-29Lines changed: 19 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -22,42 +22,39 @@ class Xslt extends XmlBase implements Converter
22
22
{
23
23
/**
24
24
* Path to stylesheet to use.
25
-
*
26
-
* @var string
27
25
*/
28
-
protected$stylesheet;
26
+
protectedstring$stylesheet;
29
27
30
28
/**
31
29
* Array of XSL stylesheets to add to the main one, grouped by priority.
32
30
*
33
-
* @var array
31
+
* @var array<int, array<string>>
34
32
*/
35
-
protected$customStylesheets = [];
33
+
protectedarray$customStylesheets = [];
34
+
35
+
privateXSLTProcessor$xsltProcessor;
36
36
37
37
/**
38
-
* Constructor.
39
-
*
40
38
* @param string $stylesheet Stylesheet to use for conversion
41
-
* @param array $customStylesheets Array of XSL stylesheets. Each entry consists in a hash having "path" and "priority" keys.
39
+
* @param array<array{priority: int, path: string}> $customStylesheets Array of XSL stylesheets. Each entry consists in a hash having "path" and "priority" keys.
0 commit comments