MDL-81634 core: Fix all implicitly defined nullables

Note: This does not impact third-party libraries.
This commit is contained in:
Andrew Nicols
2024-08-02 14:11:12 +08:00
parent 8a6e8563fd
commit 024e36be17
391 changed files with 782 additions and 782 deletions
+3 -3
View File
@@ -66,7 +66,7 @@ class dataformat {
* @throws coding_exception
*/
public static function download_data(string $filename, string $dataformat, array $columns, Iterable $iterator,
callable $callback = null): void {
?callable $callback = null): void {
if (ob_get_length()) {
throw new coding_exception('Output can not be buffered before calling download_data()');
@@ -115,7 +115,7 @@ class dataformat {
* @return string Complete path to the file on disk
*/
public static function write_data(string $filename, string $dataformat, array $columns, Iterable $iterator,
callable $callback = null): string {
?callable $callback = null): string {
$format = self::get_format_instance($dataformat);
@@ -159,7 +159,7 @@ class dataformat {
* @return stored_file
*/
public static function write_data_to_filearea(array $filerecord, string $dataformat, array $columns, Iterable $iterator,
callable $callback = null): stored_file {
?callable $callback = null): stored_file {
$filepath = self::write_data($filerecord['filename'], $dataformat, $columns, $iterator, $callback);