Improve type-safty in player.php
Suppress warnings that might leak information