}
/**
- * @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
/**
*
- * @param string|NULL $dsn
+ * @param string|null $dsn
* @param string $queryString
* @param string $prefix
* @param bool $dieOnErrors
}
/**
- * @param $ext
+ * @param string $ext
*
* @return bool
*/
* 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.