Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Project import from Mars to Orion - Variable never used or undefined(I migrated a PHP project (Silex µframework) from Mars to last Eclipse for PHP.... Raising thousands of warnings and errors)
Project import from Mars to Orion - Variable never used or undefined [message #1817173] Sun, 17 November 2019 22:03
Gaël Derré is currently offline Gaël DerréFriend
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

Previous Topic:Find Function within PHP project
Next Topic:Best PHP Development Tool
Goto Forum:
  


Current Time: Mon Nov 28 05:20:41 GMT 2022

Powered by FUDForum. Page generated in 0.01311 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top