Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.
This repository was archived by the owner on May 26, 2022. It is now read-only.

PHP 8.1 Error #873

@agus-prawoto

Description

@agus-prawoto

Hi, I'm using Codeigniter 4 with PHP 8.1 and trying to run this code:

$filename = 'somefile.xlsx';
$reader = ReaderEntityFactory::createReaderFromFile($filename);
$reader->open($filename);

But I got the following error

Fatal error: During inheritance of XMLReader: Uncaught ErrorException: Return type of Box\Spout\Reader\Wrapper\XMLReader::read() should either be compatible with XMLReader::read(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\xampp-8.1.2\htdocs\app\ThirdParty\Spout\src\Spout\Reader\Wrapper\XMLReader.php:86

Previously I used PHP 8.0 and it just work fine
Please help, thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions