Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
F7130947: D2490.id6275.diff
Mon, Apr 21, 05:02
F7091486: D2490.diff
Sun, Apr 20, 14:06
F7088754: D2490.id6275.diff
Sun, Apr 20, 12:48
Unknown Object (File)
Sat, Apr 19, 15:10
Unknown Object (File)
Sat, Apr 19, 10:32
Unknown Object (File)
Fri, Apr 18, 16:21
Unknown Object (File)
Fri, Apr 18, 14:42
Unknown Object (File)
Fri, Apr 18, 12:39
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 Skipped
Unit
Tests Skipped
Branch
main
Build Status
Buildable 3879
Build 4130: arc lint + arc unit

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.