Page MenuHomeDevCentral

Use $this binding in closures
ClosedPublic

Authored by dereckson on Jan 26 2022, 20:42.
Tags
None
Referenced Files
F34870099: D2490.id.diff
Fri, Jul 3, 14:03
Unknown Object (File)
Thu, Jul 2, 22:01
Unknown Object (File)
Thu, Jul 2, 21:31
Unknown Object (File)
Thu, Jul 2, 04:45
Unknown Object (File)
Wed, Jul 1, 03:32
Unknown Object (File)
Fri, Jun 26, 08:48
Unknown Object (File)
Sun, Jun 21, 12:22
Unknown Object (File)
Thu, Jun 18, 14:51
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.