Since the class is located in the NS 'Presence' DateTime::createFromFormat() should cause an PHPError to be thrown .. use \DateTime::createFromFormat