Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
F11036287: D2490.id6275.diff
Sun, Aug 10, 10:24
Unknown Object (File)
Fri, Aug 8, 20:03
Unknown Object (File)
Mon, Aug 4, 01:21
Unknown Object (File)
Sun, Aug 3, 02:00
Unknown Object (File)
Sat, Aug 2, 10:30
Unknown Object (File)
Mon, Jul 28, 18:10
Unknown Object (File)
Mon, Jul 28, 13:26
Unknown Object (File)
Sun, Jul 27, 16:12
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.