Skip to content

fix in php 8.4 #1865

Open
Open
@silentwar-resident

Description

@silentwar-resident

i cant find the exact file but here it is.... hope you or anyone can help me fix this...


here the errors:

Deprecated
:
League\Flysystem\EventableFilesystem\EventableFilesystem::__construct():
Implicitly marking parameter $emitter as nullable is deprecated, the explicit nullable type must be used instead in /usr/www/dcu/public_html/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php
on line
30

Deprecated
: League\Flysystem\EventableFilesystem\EventableFilesystem::get():
Implicitly marking parameter $handler as nullable is deprecated, the
explicit nullable type must be used instead in
/usr/www/dcu/public_html/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php
on line
98

Deprecated
: Use of "parent" in callables is deprecated in
/usr/www/dcu/public_html/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php
on line
431


snippet of line 30:

     /**
      * Constructor.
      *
      * @param AdapterInterface $adapter
      * @param mixed            $config
      * @param Emitter          $emitter
      */
     public function __construct(AdapterInterface $adapter, $config =
null, Emit>
     {
         $this->setEmitter($emitter);
         parent::__construct($adapter, $config);
     }
--------------------------------------------------------------------------

snippet og line 98:

     /**
      * Get a file/directory handler.
      *
      * @param string  $path
      * @param Handler $handler
      * @param mixed   $config
      *
      * @return Handler file or directory handler
      */
     public function get($path, Handler $handler = null, array $config =
[])
     {
         return $this->delegateMethodCall('get', compact('path',
'handler', 'config'));

     }

--------------------------------------------

snippet of line 431:

     /**
      * Call the underlying filesystem method.
      *
      * @param string $method
      * @param array  $arguments
      *
      * @return mixed
      */
     protected function callFilesystemMethod($method, array $arguments)
     {
         $callable = 'parent::'.$method;
         $result = call_user_func_array($callable,
array_values($arguments));

         return $result;
     }


thanks for all your help

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