strict_types declaration must be the very first statement
Bonjour,
j'ai le message d'erreur donné dans le titre alors qu'il n'y a rien avant cette instruction. Quelle est la raison, SVP ?
Citation:
Fatal error: strict_types declaration must be the very first statement in the script in C:\projets\arnaud\index.php on line 1
index.php :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| <?php declare(strict_types=1);
//session_start();
const DIR_ROOT = __DIR__.DIRECTORY_SEPARATOR;
const APP_NAME_NS = 'PasDePanique';
require DIR_ROOT.'vendor'.DIRECTORY_SEPARATOR.'autoload.php'; //autoload de composer
require DIR_ROOT.'config'.DIRECTORY_SEPARATOR.'bootstrap.php';//definition of the constants
// ROUTING : en charge d'appeler le bon controleur
include 'config/routing.php'; |