Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 1, 12:42
Unknown Object (File)
Thu, May 1, 10:22
Unknown Object (File)
Mon, Apr 28, 19:19
Unknown Object (File)
Sun, Apr 27, 16:21
Unknown Object (File)
Fri, Apr 25, 16:24
Unknown Object (File)
Fri, Apr 25, 16:24
Unknown Object (File)
Fri, Apr 25, 08:19
Unknown Object (File)
Wed, Apr 23, 00:53
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.