Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3943898
D2490.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
560 B
Referenced Files
None
Subscribers
None
D2490.diff
View Options
diff --git a/src/Registration/PSR4/Autoloader.php b/src/Registration/PSR4/Autoloader.php
--- a/src/Registration/PSR4/Autoloader.php
+++ b/src/Registration/PSR4/Autoloader.php
@@ -39,10 +39,8 @@
}
public function register () : void {
- $loader = $this;
-
- spl_autoload_register(function ($class) use ($loader) {
- $solver = $loader->getSolver($class);
+ spl_autoload_register(function ($class) {
+ $solver = $this->getSolver($class);
if (!$solver->canResolve()) {
return;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 13:28 (12 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2315480
Default Alt Text
D2490.diff (560 B)
Attached To
Mode
D2490: Use $this binding in closures
Attached
Detach File
Event Timeline
Log In to Comment