Skip to content

Commit e367ebf

Browse files
authored
Changing solution for consistency
Adding the #[ReturnTypeWillChange] attribute to be consistent with previous fixes in PR 4386, and removing the method return type declaration
1 parent 24c8874 commit e367ebf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

framework/db/schema/mssql/CMssqlSqlsrvPdoAdapter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class CMssqlSqlsrvPdoAdapter extends PDO
3030
* @param string|null $sequence the sequence/table name. Defaults to null.
3131
* @return integer last inserted ID value.
3232
*/
33-
public function lastInsertId($sequence=null): string|false
33+
#[ReturnTypeWillChange]
34+
public function lastInsertId($sequence=null)
3435
{
3536
$parts = explode('.', phpversion('pdo_sqlsrv'));
3637
$sqlsrvVer = phpversion('pdo_sqlsrv') ? intval(array_shift($parts)) : 0;

0 commit comments

Comments
 (0)