Skip to content

php 8.4 deprecation error - flysystem #4

@jcogs-design

Description

@jcogs-design

Description of the problem
This deprecation error appearing when running EE7.5.17 under php 8.4

Deprecated
: ExpressionEngine\Dependency\League\Flysystem\FileNotFoundException::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in
/var/www/html/system/ee/vendor-build/expressionengine/flysystem/src/FileNotFoundException.php
on line
19

Environment Details:

  • Version: 7.5.17
  • PHP Version 8.4.14

Possible Solution
Modify the class constructor declaration thusly:

    public function __construct($path, $code = 0, ?BaseException $previous = null)

Additional context
Probably about time EE upgraded from the deprecated Flysystem 1.1.x to Flysystem 3 ...

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