<?php
function giveMeYourString(int $ohYeah): string {
return (string) $ohYeah;
}
// This will throw a TypeError exception (yeah, exception, we will see it later)
giveMeYourString("I'm already a string I understood nothing");
// This will work without problems
giveMeYourString(13700);