From d422dd933aab67068412d99e964e01fef6be35e7 Mon Sep 17 00:00:00 2001 From: Synchro Date: Wed, 15 Oct 2014 11:03:40 +0200 Subject: [PATCH] Allow some legacy coding practices since there's nothing we can do about them --- .scrutinizer.yml | 6 ++++++ class.phpmailer.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index d66f5cdc6..f78f0bbea 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -116,6 +116,12 @@ tools: # Runs Scrutinizer's PHP Analyzer Tool php_analyzer: enabled: true + checks: + php: + function_in_camel_caps: false + no_underscore_prefix_in_methods: false + no_underscore_prefix_in_properties: false + one_class_per_file: false filter: excluded_paths: - 'docs/*' diff --git a/class.phpmailer.php b/class.phpmailer.php index a25cddd98..404dc8cf6 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -2932,7 +2932,7 @@ public function msgHTML($message, $basedir = '', $advanced = false) $cid, $filename, 'base64', - self::_mime_types(self::mb_pathinfo($filename, PATHINFO_EXTENSION)) + self::_mime_types((string)self::mb_pathinfo($filename, PATHINFO_EXTENSION)) ) ) { $message = preg_replace(