Skip to content

Update docs for HHVM 4.156 #1202

Open
Open
@AndrewDiMola

Description

@AndrewDiMola

From hhvm/hhvm.com#199.

Serialize with Options

  • "HH\serialize_with_options now supports a disallowObjects option, which disallows serialization of objects except for legacy Hack Collections."

Open question: We never talk about serializing anywhere in the docs. Should we? Or could just start by adding an options section in https://docs.hhvm.com/hack/reference/function/HH.serialize_with_options/ with disallowObjects, though I'm not sure what other options there are.

Literals with Underscores

  • Numeric literals can now contain underscores to improve code readability; for example, $x = 1_234_567_890; sets $x to the integer 1234567890."
    Added here: Add underscores to numeric literals #1197

Breaking: Lambdas in Anonymous functions

  • "lambdas contained within an anonymous function will no longer implicitly capture variables from the parent scope of the anonymous function, unless the variable is in the anonymous function's use clause"

Possible areas to update:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @AndrewDiMola

        Issue actions

          Update docs for HHVM 4.156 · Issue #1202 · hhvm/user-documentation