Module Development

PHP Type Hinting for Drupal 8, 9

Sprout Video

In this PHP tutorial, you'll learn how Type Hinting can help you get better errors from PHP as you develop your application. You'll learn to debug errors and see how Type Hinting impacts the phrasing of the error messages you receive.

Additional resources

Type Hinting (PHP Manual)