Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
F47086286: D2490.id6275.diff
Sat, Aug 29, 15:25
F47086242: D2490.id6274.diff
Sat, Aug 29, 15:24
F47029028: D2490.diff
Sat, Aug 29, 11:11
Unknown Object (File)
Wed, Aug 26, 09:20
Unknown Object (File)
Sun, Aug 23, 13:10
Unknown Object (File)
Sat, Aug 22, 20:41
Unknown Object (File)
Fri, Aug 21, 12:04
Unknown Object (File)
Mon, Aug 17, 14:20
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.