Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

570
Vistas
Where to add 'strict_types' for PHP7 in Symfony?

I am starting a new project in symfony and i have switched from PHP56 to PHP7. As per guidelines you have to add following to reflect new features of PHP7

<?php 

declare(strict_types=1);

// Rest of the code...

Where should i put 'strict_type' in my new symfony project to avoid writing 'strict_type' in each file, so that new features of PHP7 should be reflected globally throughout the project?

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

It's a per-file directive, so you must put it in every file.

References:

  • http://php.net/manual/en/control-structures.declare.php
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda