Flagged superglobal usage in WordPress VIP

If you use the WordPress or WordPress-VIP standards, then the following code:

<?php
if ( isset( $_GET['post'] ) && $_GET['post'] == get_option( 'page_on_front' ) ) {
?>

…will give the following issues:

WARNING | Detected access of super global var $_GET, probably need manual inspection. (WordPress.VIP.SuperGlobalInputUsage.)

ERROR | Detected usage of a non-sanitized input variable: $_GET (WordPress.VIP.ValidatedSanitizedInput.)

<?php
if ( isset( $_GET['post'] ) && absint( $_GET['post'] ) == get_option( 'page_on_front' ) ) {
?>

https://mythemeshop.com/wordpress-errors-fixes/https://mythemeshop.com/wordpress-errors-fixes/https://mythemeshop.com/wordpress-errors-fixes/