Simplify Flight and faster performance#623
Conversation
Null coalescing operator work from PHP 7.0
|
I see that you use it in the tests: protected function setUp(): void
{
$_SERVER = [];
$_REQUEST = [];
Flight::init();
Flight::setEngine(new Engine());
Flight::set('flight.views.path', __DIR__ . '/views');
}But when you call the It'll work the same with: protected function setUp(): void
{
$_SERVER = [];
$_REQUEST = [];
//Flight::setEngine(new Engine());
Flight::set('flight.views.path', __DIR__ . '/views');
}Well with the |
I tried looking into this, but when I did it, a bunch of unit tests blew up and it created some weird behavior. We may have to wait until the other PR goes into master before we can pull this one off correctly. |
|
If you have your tests to work without |
Null coalescing operator work from PHP 7.0
I don't know if is it necessary the
setEngine()because is public ?I think that is for use an extended Engine. But before never will work if changed before any call, because don't change the
$initialized.