Skip to content

Commit 15d4169

Browse files
committed
Fix null param
1 parent de8c149 commit 15d4169

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Ajax/semantic/components/Toast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
class Toast extends SimpleSemExtComponent {
1515

16-
public function __construct(JsUtils $js) {
16+
public function __construct(JsUtils $js=NULL) {
1717
parent::__construct($js);
1818
$this->uiName='toast';
1919
}

Ajax/semantic/html/base/HtmlSemDoubleElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function addList($items,$ordered=false){
192192
* @return \Ajax\semantic\components\Toast
193193
*/
194194
public function asToast($params=NULL){
195-
$this->_toast=new Toast(null);
195+
$this->_toast=new Toast();
196196
if(isset($params)){
197197
$this->_toast->setParams($params);
198198
}

0 commit comments

Comments
 (0)