Skip to content

Commit 4b11715

Browse files
author
Andreas Kralik
committed
PMG-86 [fix] rename function
1 parent ee0415c commit 4b11715

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
nbproject
22
tests/unit/sandbox.php
3+
.idea
4+
vendor

autoloader/InstantAutoloader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function register()
102102
\spl_autoload_register("__autoload");
103103

104104
}
105-
\spl_autoload_register(array($this, "__autoload"));
105+
\spl_autoload_register(array($this, "autoload"));
106106
}
107107

108108
/**
@@ -140,7 +140,7 @@ public function setBasePath($basePath)
140140
*
141141
* @return void
142142
*/
143-
public function __autoload($class)
143+
public function autoload($class)
144144
{
145145
$this->_normalizeClass($class);
146146

tests/autoloader/InstantAutoloader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function register()
102102
\spl_autoload_register("__autoload");
103103

104104
}
105-
\spl_autoload_register(array($this, "__autoload"));
105+
\spl_autoload_register(array($this, "autoload"));
106106
}
107107

108108
/**
@@ -140,7 +140,7 @@ public function setBasePath($basePath)
140140
*
141141
* @return void
142142
*/
143-
public function __autoload($class)
143+
public function autoload($class)
144144
{
145145
$this->_normalizeClass($class);
146146

0 commit comments

Comments
 (0)