Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
- Fix `Variable $tags might not be defined.`
  • Loading branch information
nanasess committed Dec 17, 2023
1 parent 0b47729 commit 1c57335
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions data/smarty_extends/function.html_checkboxes_ex.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function smarty_function_html_checkboxes_ex($params, &$smarty)
$labels = true;
$label_ids = true;
$output = null;
$tags = [];

$extra = '';

Expand Down
3 changes: 2 additions & 1 deletion data/smarty_extends/function.html_radios_ex.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function smarty_function_html_radios_ex($params, &$smarty)
$label_ids = true;
$output = null;
$extra = '';
$tags = [];

foreach ($params as $_key => $_val) {
switch ($_key) {
Expand Down Expand Up @@ -123,7 +124,7 @@ function smarty_function_html_radios_ex($params, &$smarty)
if (!empty($params['assign'])) {
$smarty->assign($params['assign'], $_html_result);
} else {
return implode("\n",$_html_result);
return implode("\n", $_html_result);
}

return '';
Expand Down
5 changes: 0 additions & 5 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ parameters:
paths:
- data/smarty_extends/function.html_radios_ex.php
- data/smarty_extends/function.html_checkboxes_ex.php
-
message: "#^Undefined variable\\: \\$tags$#"
paths:
- data/smarty_extends/function.html_radios_ex.php
- data/smarty_extends/function.html_checkboxes_ex.php
-
message: "#^Variable \\$SJIS_widths might not be defined\\.$#"
path: data/class/helper/SC_Helper_FPDI.php

0 comments on commit 1c57335

Please sign in to comment.