Shape Types

Edit pageLast modified: 02 February 2025

Each composite type can be rigidly described by a structural type called a "shape". A shape within the PHP language can be applied to any array or object and contain either implicit or explicit keys.

array{
    a: first,
    b: second
}