Yep, but nope I don't.
null is incapable of comparing itself with an instanceof check, so you cannot pull up the method off of a non-object on it.
I did find the problem though, and I didn't really think it would be an issue, but admittedly I typically use printf so I don't notice things like the concat.
Precedence order of the concat is considered higher than that of the ternary. I'm not sure what it *thinks* its supposed to do with it, but its not what we say it's supposed to do with it.
Simply wrap the ternary in ():
(($result['DateEntered'] instanceof DateTime) ? $result['DateEntered']->format('Y-m-d H:i:s') : $result['DateEntered'])
for both of them, and it should work.