Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPStan のエラー修正 #800

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading