Skip to content

Not workin with PHP 8 #6

Open
Open
@pmoreno-rodriguez

Description

@pmoreno-rodriguez

Hello.

I have two versions of PHP, 7.3 and 8 installed. With the same web page in Grav, the one loaded with PHP8, it shows this error:

C:\xampp\htdocs\grav\user\plugins\shortcodes\classes\Autoloader.php
        // Load class
        if (stream_resolve_include_path($file)) {
          return include_once($file);
        }
 
        return false;
      }
    }
 
    return false;
  }
 
  /**
   * Registers this instance as an autoloader
   *
   * @param bool $prepend Whether to prepend the autoloader or not
   */
  public function register($prepend = false)
  {
    spl_autoload_register([$this, 'autoload'], false, $prepend);
  }
 
  /**
   * Unregisters this instance as an autoloader
   */
  public function unregister()
  {
    spl_autoload_unregister([$this, 'autoload']);
  }
}
 
Arguments
"spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw"

Is this plugin compatible with PHP 8?

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