In PHP7, nullable return types were introduced, allowing a function to return either a specific type or null.