# strict_types vs duck typing (PHP) ## `declare(strict_types=1)` ```php <?php declare(strict_types=1); function somar(int $a, int $b): int { return $a + $b; } somar(1, 2); // ✅ OK somar("1