Other types

  • iterable - represents the iterable pseudo-type. Like arrays, iterables can have type parameters e.g. iterable<string, Foo>.
  • void - can be used in a return type when a function does not return a value.
  • resource represents a PHP resource.
  • closed-resource represents a PHP resource that was closed (using fclose or another closing function).