Fixing a bunch of PHP notices about calling static functions