Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
F21145482: D2490.id6274.diff
Sun, Jan 18, 09:02
F21144137: D2490.diff
Sun, Jan 18, 06:47
Unknown Object (File)
Thu, Jan 15, 19:11
Unknown Object (File)
Thu, Jan 15, 16:35
Unknown Object (File)
Tue, Jan 13, 17:27
Unknown Object (File)
Tue, Jan 13, 09:19
Unknown Object (File)
Mon, Jan 12, 07:54
Unknown Object (File)
Fri, Jan 9, 09:16
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.