Change record status: 
Project: 
Introduced in branch: 
9.5.x
Introduced in version: 
9.5.0
Description: 

The method Drupal\Core\Database\Connection::lastInsertId() has changed from an @internal to being part of the public Database API.

The method returns the ID of the last inserted row or sequence value.

Impacts: 
Module developers