picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.81k stars 616 forks source link

Deprecation error on Alpha-2 that I’m trying to understand… failing #668

Closed lloydsargent closed 1 year ago

lloydsargent commented 1 year ago

This is the code:

composer/ClassLoader.php

/**
 * Scope isolated include.
 *
 * Prevents access to $this/self from included files.
 */
function includeFile($file)
{
    include $file;
}

Twig calls it and I get the following:

Exception has occurred.
Deprecated: Optional parameter $callable declared before required parameter $arguments is implicitly treated as a required parameter

Not being a PHP expert, I know what the code does, just not what the error actually means or, better yet, how to fix it.

PhrozenByte commented 1 year ago

Set error_reporting in your php.ini to a value recommended for production servers, e.g. error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT.

lloydsargent commented 1 year ago

I’m puzzled how this changes the fact that it is deprecated?

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1: