Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
F3943898: D2490.diff
Wed, Dec 25, 13:28
F3943091: D2490.id6274.diff
Wed, Dec 25, 04:07
Unknown Object (File)
Sun, Dec 22, 17:39
Unknown Object (File)
Sun, Dec 22, 12:29
Unknown Object (File)
Fri, Dec 20, 05:01
Unknown Object (File)
Thu, Dec 19, 02:43
Unknown Object (File)
Thu, Dec 19, 02:21
Unknown Object (File)
Mon, Dec 16, 18:51
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.