Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
F12371219: D2490.id6275.diff
Thu, Oct 30, 11:54
Unknown Object (File)
Wed, Oct 29, 09:22
Unknown Object (File)
Mon, Oct 27, 10:50
Unknown Object (File)
Mon, Oct 27, 01:42
Unknown Object (File)
Sun, Oct 26, 23:23
Unknown Object (File)
Sun, Oct 26, 10:11
Unknown Object (File)
Sat, Oct 25, 21:56
Unknown Object (File)
Sat, Oct 25, 04: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 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.