<?php declare(strict_types=1); // strict requirement function addNumbers(float $a, float $b): int { return (int) ($a + $b); } echo addNumbers(1.2, 5.2); ?>