Project import from Mars to Orion - Variable never used or undefined [message #1817173] |
Sun, 17 November 2019 22:03 |
Gaël Derré Messages: 1 Registered: November 2019 |
Junior Member |
|
|
Dear all,
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:
index.php:
<?php
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->run ();
dev.php:
<?php
$app ['db.options'] = array (****);
$app ['debug'] = true;
$app ['monolog.level'] = 'INFO';
--> I have for each $app a warning "variable $app is never used".
app.php:
<?php
use Symfony\Component\Debug\ErrorHandler;
use Symfony\Component\Debug\ExceptionHandler;
// Register global error and exception handlers
ErrorHandler::register ();
ExceptionHandler::register ();
// 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 !
Odessse
|
|
|
Powered by
FUDForum. Page generated in 0.03494 seconds