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

Mark _autoload function as public and not private. #12478

Merged
merged 3 commits into from
Oct 25, 2016
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libraries/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ class_alias($class, $alias);
*
* @since 11.3
*/
private static function _autoload($class)
public static function _autoload($class)
{
foreach (self::$prefixes as $prefix => $lookup)
{
Expand All @@ -609,7 +609,7 @@ private static function _autoload($class)
*
* @since 12.1
*/
private static function _load($class, $lookup)
public static function _load($class, $lookup)
{
// Split the class name into parts separated by camelCase.
$parts = preg_split('/(?<=[a-z0-9])(?=[A-Z])/x', $class);
Expand Down