That sounds really suspicious.
TYPE_ARRAY is just an enum representation of the value
19. So, they should be absolutely interchangeable. And, with that in mind, I'd highly recommend that you use
TYPE_ARRAY instead of the value
So called magic numbers are never good to have floating around in code. If you look at that code 6 months from now, you'll probably ask yourself what
19 means. However, if you instead see
TYPE_ARRAY there, it'll probably make sense immediately.
Really, I think you must have done more than changed the
TYPE_ARRAY reference to
19. Whatever those other changes were must have been the real fix. Otherwise, it doesn't make sense to me.
Regardless, I'm glad you have it working now.