Update Guard.php

make sure id() always return integer.