Update poll.php

Fixed syntax errors: properties and constructor declarations