diff --git a/create_framework/templating.rst b/create_framework/templating.rst index 6fca67d84a1..f7ff66fa9f8 100644 --- a/create_framework/templating.rst +++ b/create_framework/templating.rst @@ -142,13 +142,14 @@ framework does not need to be modified in any way, create a new ``app.php`` file:: // example.com/src/app.php + use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing; function is_leap_year($year = null) { if (null === $year) { - $year = date('Y'); + $year = (int)date('Y'); } return 0 === $year % 400 || (0 === $year % 4 && 0 !== $year % 100);