Fix php warnings
Merge remote-tracking branch 'origin/master'