Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
F24283542: D2490.id6275.diff
Thu, Feb 12, 13:43
F24267718: D2490.id6274.diff
Thu, Feb 12, 04:55
F24264587: D2490.id6274.diff
Thu, Feb 12, 03:04
Unknown Object (File)
Wed, Feb 11, 05:21
Unknown Object (File)
Sun, Feb 8, 01:03
Unknown Object (File)
Fri, Feb 6, 01:27
Unknown Object (File)
Thu, Feb 5, 15:19
Unknown Object (File)
Tue, Feb 3, 13:25
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 Skipped
Unit
Tests Skipped
Branch
main
Build Status
Buildable 3879
Build 4130: arc lint + arc unit

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.