Add deprecated PHP check, check for more immutable stuff, fix uninitialized value warnings