2.2.5 Fix php notices & warnings

Signed-off-by: Nick Ciske <nick@thoughtrefinery.com>