File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed
system/ThirdParty/Escaper Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1414 "ext-intl" : " *" ,
1515 "ext-json" : " *" ,
1616 "ext-mbstring" : " *" ,
17- "laminas/laminas-escaper" : " ^2.9 " ,
17+ "laminas/laminas-escaper" : " ^2.13 " ,
1818 "psr/log" : " ^2.0"
1919 },
2020 "require-dev" : {
Original file line number Diff line number Diff line change 1414 "ext-intl" : " *" ,
1515 "ext-json" : " *" ,
1616 "ext-mbstring" : " *" ,
17- "laminas/laminas-escaper" : " ^2.9 " ,
17+ "laminas/laminas-escaper" : " ^2.13 " ,
1818 "psr/log" : " ^2.0"
1919 },
2020 "require-dev" : {
Original file line number Diff line number Diff line change @@ -157,9 +157,21 @@ public function __construct(?string $encoding = null)
157157 $ this ->htmlSpecialCharsFlags = ENT_QUOTES | ENT_SUBSTITUTE ;
158158
159159 // set matcher callbacks
160- $ this ->htmlAttrMatcher = [$ this , 'htmlAttrMatcher ' ];
161- $ this ->jsMatcher = [$ this , 'jsMatcher ' ];
162- $ this ->cssMatcher = [$ this , 'cssMatcher ' ];
160+ $ this ->htmlAttrMatcher =
161+ /** @param array<array-key, string> $matches */
162+ function (array $ matches ): string {
163+ return $ this ->htmlAttrMatcher ($ matches );
164+ };
165+ $ this ->jsMatcher =
166+ /** @param array<array-key, string> $matches */
167+ function (array $ matches ): string {
168+ return $ this ->jsMatcher ($ matches );
169+ };
170+ $ this ->cssMatcher =
171+ /** @param array<array-key, string> $matches */
172+ function (array $ matches ): string {
173+ return $ this ->cssMatcher ($ matches );
174+ };
163175 }
164176
165177 /**
You can’t perform that action at this time.
0 commit comments