<?php

declare(strict_types=1);

function increment(int $x): int
{
    return $x + 1;
}

echo increment('1'); // 2