MDL-81634 core: Fix all implicitly defined nullables
Note: This does not impact third-party libraries.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user