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(