What’s the name of this in PHP? [duplicate]

The text before $provider specifies what should the argument be. In this case it should be an instance of ServiceProviderInterface. Read more about type declaration here:

http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration

Leave a Comment