0

I was reading through some of the Zend framework's hydration source code and came across something I haven't encountered before:

public function hydrate(string $name, ?array $data = null) : string

I've never seen something type hinted like the $data parameter - ?array

I don't know what to search for, so finding documentation on the syntax used there is really difficult. Does anyone know what it is called when you type hint with a question mark like that, and possibly what it does?

Even if you only point me at the right documentation I'd really appreciate any help.

Skytiger
  • 1,745
  • 4
  • 26
  • 53

1 Answers1

-1

It declares $data as nullable, as described in the docs

Jb31
  • 1,381
  • 1
  • 10
  • 19