scmhook: fix php warning