PSR-12 says "The closing ?> tag MUST be omitted from files containing only PHP".
We were treating such methods like constructors and assigning to the internal _cPtr, which just seems bizarrely wrong. Fixes #1900