Skip to content

Commit

Permalink
Merge pull request #842 from EC-CUBE/seasoft-phpstan-20240215
Browse files Browse the repository at this point in the history
phpstan 調整
  • Loading branch information
dotani1111 authored Feb 21, 2024
2 parents 3e6cf47 + 062563b commit cfc23e4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
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

0 comments on commit cfc23e4

Please sign in to comment.