Skip to content

php 8.1 warning #26

@Pok4

Description

@Pok4

[phpBB Debug] PHP Warning: in file C:/xampp2/htdocs/App/Entity/Uploader.php on line 202: Trying to access array offset on value of type int

 
On line 202 i have:
if($options['maxSize'] && $file['size'][0] > $options['maxSize']) $errors[] = $this->error_messages['max_file_size'];
when i cjhange $file['size'][0] to @$file['size'][0] the warning disappear.

Can someone test it on php 8.1 and fix this... ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions