File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,19 +131,19 @@ public function getParameters() {
131131 /**
132132 * Set extra list attributes.
133133 *
134- * @param string $attributes
134+ * @param ? string $attributes
135135 */
136136 public function setListAttributes ( $ attributes ) {
137- $ this ->listAttributes = Sanitizer::fixTagAttributes ( $ attributes , 'ul ' );
137+ $ this ->listAttributes = Sanitizer::fixTagAttributes ( $ attributes ?: '' , 'ul ' );
138138 }
139139
140140 /**
141141 * Set extra item attributes.
142142 *
143- * @param string $attributes
143+ * @param ? string $attributes
144144 */
145145 public function setItemAttributes ( $ attributes ) {
146- $ this ->itemAttributes = Sanitizer::fixTagAttributes ( $ attributes , 'li ' );
146+ $ this ->itemAttributes = Sanitizer::fixTagAttributes ( $ attributes ?: '' , 'li ' );
147147 }
148148
149149 /**
You can’t perform that action at this time.
0 commit comments