|Project import from Mars to Orion - Variable never used or undefined [message #1817173]
||Sun, 17 November 2019 22:03
| Gaël Derré
Registered: November 2019
I am a bit puzzled here. I have a code 100% working on my server but Eclipse shows thousands of warnings and errors now that I migrated to new Eclipse... Not changing one single comma to my code.
I provide you just the first lines as I guess it is self explainatory:
require __DIR__ . '/../vendor/autoload.php';
$app = new Silex\Application ();
require __DIR__ . '/../app/config/dev.php';
require __DIR__ . '/../app/app.php';
require __DIR__ . '/../app/routes.php';
$app ['db.options'] = array (****);
$app ['debug'] = true;
$app ['monolog.level'] = 'INFO';
--> I have for each $app a warning "variable $app is never used".
// Register global error and exception handlers
// Register service providers.
$app->register ( new Silex\Provider\DoctrineServiceProvider () );
--> I have here the message "Variablle $app is undefined".
This drives me crazzy as I don't understand why :-(. Any idea welcome !
Powered by FUDForum
. Page generated in 0.01311 seconds