Based on PDO documentation lastInsertId can be string|false, but Codeception\Lib\Driver\Db::lastInsertId has a string return value, so tables without auto increment field could fail with type error. Tried to upgrade using MS SQL Server in my tests.
Probably a simple cast to string could solve the issue, but not sure if it has any implications on other code.
Based on PDO documentation lastInsertId can be
string|false
, butCodeception\Lib\Driver\Db::lastInsertId
has astring
return value, so tables without auto increment field could fail with type error. Tried to upgrade using MS SQL Server in my tests.Probably a simple cast to string could solve the issue, but not sure if it has any implications on other code.