dzuelke / wordpress-12factor

WordPress, the Twelve-Factor way: fully managed using Composer and configured using environment variables.
272 stars 102 forks source link

PHP warning: __autoload() is deprecated #4

Open cba85 opened 6 years ago

cba85 commented 6 years ago

Hello,

I obtained a PHP warning on PHP 7.2 when trying to install wordpress-12factor using composer wordpress-setup-core-install.

PHP Deprecated:  __autoload() is deprecated, use spl_autoload_register() instead in /wordpress/wp-includes/compat.php on line 502

I fixed it replacing:

function __autoload( $classname ) {
    ...
}

by

function spl_autoload_register( $classname ) {
    ...
}

Thank you for your useful project!