Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not workin with PHP 8 #6

Open
pmoreno-rodriguez opened this issue Mar 15, 2023 · 0 comments
Open

Not workin with PHP 8 #6

pmoreno-rodriguez opened this issue Mar 15, 2023 · 0 comments

Comments

@pmoreno-rodriguez
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant