need help fixing for php 8.4

From: Date: Fri, 18 Apr 2025 20:27:07 +0000
Subject: need help fixing for php 8.4
Groups: php.general 
Request: Send a blank email to php-general+get-328670@lists.php.net to get a copy of this message
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

« previous php.general (#328670) next »