Declare methods called statically from hooks as static.

This fixes strict warnings by PHP.
Merge pull request #1 from bvleur/declare-static

Declare methods called statically from hooks as static.