Add dependencies for --HEAD to abstract-php class

Closes issue #732