Fix casting phpcs issue