Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 29, 11:50
Unknown Object (File)
Mon, Dec 29, 01:21
Unknown Object (File)
Sun, Dec 28, 03:34
Unknown Object (File)
Sat, Dec 27, 21:42
Unknown Object (File)
Sat, Dec 27, 15:40
Unknown Object (File)
Sat, Dec 27, 14:47
Unknown Object (File)
Fri, Dec 26, 22:22
Unknown Object (File)
Mon, Dec 22, 05:59
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.