[eluser]jedd[/eluser]
I think that was tlam's point.
I went and wrote comparable code outside of CI, and as tlam suggested, the error doesn't manifest - it just doesn't return anything (or perhaps it returns NULL - I didn't test that far).
CI does appear to be either bumping up the error reporting sensitivity, or doing something else a bit funny. Unless it's just something that happens within classes only - I didn't test that either.