hhvm / user-documentation

Documentation for those that use HHVM and write Hack code.
http://docs.hhvm.com/
Other
129 stars 159 forks source link

Add comment to Memoize attribute documentation #1311

Closed rootkit007 closed 1 year ago

rootkit007 commented 1 year ago

TIL that Memoize attribute will cause implementation to be memoized at declaring class level. If the code inside function uses any static:: constructs to retrieve definitions (or call into functions) from child class, these will fail as function is bound to the place in code where it's declared.