Php – Phpdoc typehint when trying to iterate over integer

I have this code

/** @var array{total: integer, records: array} $response */
$response = $this->getResponse();

foreach($response['total'] as $value) {
    $this->saveRecord($value);
}

Shouldn’t PHPStorm give me a warning using PHPDoc static analysis that I’m trying to iterate over $response['total'], which is an integer ?