Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Inaccuracy in AbstractPdo:lastInsertId() method signature #15659

Closed
Jeckerson opened this issue Sep 11, 2021 · 0 comments · Fixed by #15660
Closed

[BUG]: Inaccuracy in AbstractPdo:lastInsertId() method signature #15659

Jeckerson opened this issue Sep 11, 2021 · 0 comments · Fixed by #15660
Assignees
Labels
5.0 The issues we want to solve in the 5.0 release bug A bug report enhancement Enhancement to the framework

Comments

@Jeckerson
Copy link
Member

Describe the bug
Method lastInsertId() has different signature with original one from Pdo:lastInsertId().

To Reproduce

public function lastInsertId(sequenceName = null) -> int | bool

Reference:
https://www.php.net/manual/ru/pdo.lastinsertid.php

public PDO::lastInsertId(?string $name = null): string|false

Expected behavior
Be identical with original.

public function lastInsertId(string! name = null) -> string | bool
@Jeckerson Jeckerson added enhancement Enhancement to the framework bug A bug report 5.0 The issues we want to solve in the 5.0 release labels Sep 11, 2021
@Jeckerson Jeckerson self-assigned this Sep 11, 2021
Jeckerson added a commit that referenced this issue Sep 11, 2021
Jeckerson added a commit that referenced this issue Sep 11, 2021
…InsertId()` to be identical as `Pdo:lastInsertId()`
Jeckerson added a commit that referenced this issue Sep 11, 2021
Jeckerson added a commit that referenced this issue Sep 11, 2021
Jeckerson added a commit that referenced this issue Sep 11, 2021
@Jeckerson Jeckerson linked a pull request Sep 11, 2021 that will close this issue
5 tasks
Jeckerson added a commit that referenced this issue Sep 11, 2021
@niden niden moved this to Released in Phalcon v5 Aug 25, 2022
@niden niden added this to Phalcon v5 Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.0 The issues we want to solve in the 5.0 release bug A bug report enhancement Enhancement to the framework
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant