Refactor NextPreviousBlock.php
Remove invalid type hinting in NextPreviousBlock.php