Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
F4063598: D2490.id6274.diff
Mon, Jan 27, 05:01
F4062283: D2490.diff
Sun, Jan 26, 19:57
Unknown Object (File)
Sun, Jan 26, 10:35
Unknown Object (File)
Sat, Jan 25, 01:47
Unknown Object (File)
Fri, Jan 24, 22:19
Unknown Object (File)
Thu, Jan 23, 19:06
Unknown Object (File)
Thu, Jan 23, 03:08
Unknown Object (File)
Wed, Jan 22, 11:52
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.