PDA

View Full Version : Oddity with 'new' keyword in PHP7



QIII
January 20th, 2017, 06:52 AM
I've noticed something weird.

I'm using Bluefish for some php development. I'm trying to instantiate a class, which is in an include in another .php file.

I suppose that doesn't matter so much.

What does matter is that the 'new' keyword is not behaving as a keyword.

That is, in the following, the keyword 'new' isn't "doing" anything.


$fooObject = new barClass();

It's not even coming up in keyword autocomplete.

Any ideas like "it's in front of your face, old man!"

QIII
January 20th, 2017, 07:56 AM
Meh. Never mind. It was autocompleting in another IED, so that was a red herring.

But I did notice a typo in the include, which ended up being the actual problem.

All is well. I cleaned my trifocals and I am back on track again.