Translations:Developers/Object oriented programming in PHP/Methods/18/en

Type hinting means to declare the type of each parameter in the signature of the method. Then, a parameter passed to the called method is only accepted if it's type matches the given type in the signature of the method definition. This makes it possible to catch parameters errors early.