Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
F54347211: D2490.diff
Sat, Oct 17, 14:39
F54278021: D2490.id6275.diff
Fri, Oct 16, 21:49
Unknown Object (File)
Fri, Oct 16, 08:00
Unknown Object (File)
Fri, Oct 16, 07:01
Unknown Object (File)
Fri, Oct 16, 01:40
Unknown Object (File)
Thu, Oct 15, 13:40
Unknown Object (File)
Sun, Oct 11, 17:06
Unknown Object (File)
Sun, Oct 11, 16:08
Subscribers
None

Details

Summary

With the automatic binding of $this, $that = $this isn't needed in PHP.

Test Plan

tests/Registration still succeed

Diff Detail

Repository
rKOT Keruald OmniTools
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.

Where we learn PHP isn't JavaScript.

This revision is now accepted and ready to land.Jan 26 2022, 20:43
This revision was automatically updated to reflect the committed changes.