Skip to content

Commit

Permalink
Merge pull request #493 from nanasess/fix-phpstan
Browse files Browse the repository at this point in the history
PHPStan のエラーを修正
  • Loading branch information
matsuoshi committed Nov 16, 2021
2 parents eb43f49 + 1e8e94f commit 383b5f1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,6 @@ jobs:
- name: Install to Composer
run: composer install --no-interaction -o

- name: Setup MailCatcher
run: gem install -N mailcatcher -v 0.6.5
shell: bash
- name: Run to MailCatcher
run: mailcatcher &
shell: bash

- name: Setup to database
run: |
choco install -y mysql --version 5.7.18
Expand Down
2 changes: 1 addition & 1 deletion data/class/pages/upgrade/helper/LC_Upgrade_Helper_Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function display()
* そのため5.2.0以上の場合は組み込み関数のjson_decode()を使用する.
*
* @param string $str
* @return StdClass
* @return mixed
* @see SC_Utils_Ex::jsonDecode
*/
public function decode($str)
Expand Down
2 changes: 1 addition & 1 deletion data/class/util/SC_Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,7 @@ public static function copyDirectory($source_path, $dest_path)
if (is_dir($cur_path)) {
// ディレクトリの場合
// コピー先に無いディレクトリの場合、ディレクトリ作成.
if (!empty($filename) && !file_exists($dest_file_path)) mkdir($dest_file_path);
if ($filename !== false && !file_exists($dest_file_path)) mkdir($dest_file_path);
SC_Utils_Ex::copyDirectory($cur_path . '/', $dest_file_path . '/');
} else {
if (file_exists($dest_file_path)) unlink($dest_file_path);
Expand Down
8 changes: 4 additions & 4 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ parameters:
-
message: "#^Call to static method dayOfWeek\\(\\) on an unknown class Date_Calc\\.#"
path: data/module/Calendar/Util/Textual.php
-
message: "#^Constant SMARTY_PLUGINS_DIR not found\\.$#"
path: data/smarty_extends/*
# -
# 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 \\$values in isset\\(\\) is always null\\.$#"
message: "#^Variable \\$values in isset\\(\\) always exists and is always null\\.$#"
paths:
- data/smarty_extends/function.html_radios_ex.php
- data/smarty_extends/function.html_checkboxes_ex.php
Expand Down

0 comments on commit 383b5f1

Please sign in to comment.