X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FFile.php;h=cdda9aa217a92b69825e989ce6e87e445bf08ec7;hb=b0aca9b6e08b58fc4c69977a124b5af866d6990b;hp=493597cc005b2bf0dd1816987d5a5627b1040bb6;hpb=72f3dbc47935cb6ca01f15314805bea45a81087e;p=civicrm-core.git diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index 493597cc00..cdda9aa217 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -293,7 +293,7 @@ class CRM_Utils_File { } /** - * @param string|NULL $dsn + * @param string|null $dsn * Use NULL to load the default/active connection from CRM_Core_DAO. * Otherwise, give a full DSN string. * @param string $fileName @@ -312,7 +312,7 @@ class CRM_Utils_File { /** * - * @param string|NULL $dsn + * @param string|null $dsn * @param string $queryString * @param string $prefix * @param bool $dieOnErrors @@ -377,7 +377,7 @@ class CRM_Utils_File { } /** - * @param $ext + * @param string $ext * * @return bool */ @@ -1124,9 +1124,10 @@ HTACCESS; * It should either return FALSE, or the value returned from is_dir(). * * @param string|null $dir - * @return bool + * @return bool|null + * In php8 the return value from is_dir() is always bool but in php7 it can be null. */ - public static function isDir(?string $dir): bool { + public static function isDir(?string $dir) { set_error_handler(function($errno, $errstr) { // If this is open_basedir-related, convert it to an exception so we // can catch it.