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 調整 #842

Merged
merged 1 commit into from
Feb 21, 2024
Merged
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
2 changes: 1 addition & 1 deletion data/class/pages/forgot/LC_Page_Forgot.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public function lfInitSecretCheckParam(&$objFormParam, $device_type)
public function lfSendMail(&$CONF, $email, $customer_name, $new_password)
{
// パスワード変更お知らせメール送信
$objMailText = new SC_SiteView_Ex(false);
$objMailText = new SC_SiteView_Ex();
$objMailText->setPage($this);
$objMailText->assign('customer_name', $customer_name);
$objMailText->assign('new_password', $new_password);
Expand Down
2 changes: 1 addition & 1 deletion data/class/pages/rss/LC_Page_Rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function init()
*/
public function process()
{
$objView = new SC_SiteView_Ex(false);
$objView = new SC_SiteView_Ex();

//新着情報を取得
$arrNews = $this->lfGetNews();
Expand Down
24 changes: 11 additions & 13 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ parameters:
level: 1
bootstrapFiles:
- tests/require.php
- data/vendor/smarty/smarty/libs/plugins/function.html_radios.php
excludePaths:
- data/Smarty/templates_c/*
- data/module/SOAP/*
- data/vendor/*
- data/downloads/*
- data/module/Calendar/Engine/PearDate.php
- data/class/helper/SC_Helper_Mobile.php
- data/class/SC_MobileEmoji.php
- data/class/SC_MobileImage.php
- data/**/flycheck_*.php
analyse:
- data/module/SOAP/*
- data/vendor/*
- data/downloads/*
- data/module/Calendar/Engine/PearDate.php
- data/class/helper/SC_Helper_Mobile.php
- data/class/SC_MobileEmoji.php
- data/class/SC_MobileImage.php
- data/**/flycheck_*.php
analyseAndScan:
- *.tpl.php
ignoreErrors:
-
message: "#^Call to an undefined static method PEAR\\:\\:raiseError\\(\\)\\.$#"
Expand All @@ -34,9 +35,6 @@ parameters:
# -
# message: "#^Constant SMARTY_PLUGINS_DIR not found\\.$#"
# path: data/smarty_extends/*
-
message: "#^Function smarty_function_escape_special_chars not found\\.$#"
path: data/smarty_extends/*
-
message: "#^Variable \\$SJIS_widths might not be defined\\.$#"
path: data/class/helper/SC_Helper_FPDI.php
Expand Down
Loading