Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
F12070277: D2490.id6275.diff
Wed, Oct 1, 10:20
F12069322: D2490.id6274.diff
Wed, Oct 1, 04:01
F12069135: D2490.diff
Wed, Oct 1, 02:26
F12068517: D2490.id6274.diff
Tue, Sep 30, 23:19
Unknown Object (File)
Mon, Sep 29, 06:36
Unknown Object (File)
Fri, Sep 26, 18:12
Unknown Object (File)
Thu, Sep 25, 15:34
Unknown Object (File)
Thu, Sep 25, 08:15
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.