Skip to content

Update functionMap.php#275

Merged
ondrejmirtes merged 4 commits intophpstan:masterfrom
colinmo:master
Jul 15, 2020
Merged

Update functionMap.php#275
ondrejmirtes merged 4 commits intophpstan:masterfrom
colinmo:master

Conversation

@colinmo
Copy link
Copy Markdown
Contributor

@colinmo colinmo commented Jul 14, 2020

Added option of SQLite3Stmt::execute to return false (bool) if it failed.

Issue Ref: phpstan/phpstan#3605
PHPDoc Ref: https://www.php.net/manual/en/sqlite3stmt.execute.php

colinmo added 2 commits July 15, 2020 09:04
Added optoin of SQLite3Stmt::execute to return false if it failed.
Fix type hints, static __set_state
'SQLite3Stmt::clear' => ['bool'],
'SQLite3Stmt::close' => ['bool'],
'SQLite3Stmt::execute' => ['SQLite3Result'],
'SQLite3Stmt::execute' => ['bool|SQLite3Result'],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be just false

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repaired, thank you.

}

public function misleadingBoolReturnType(): boolean
public function misleadingBoolReturnType(): bool
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want these changes, they're here on purpose

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I apologise, restored, thank you.

@ondrejmirtes ondrejmirtes merged commit 61dafbe into phpstan:master Jul 15, 2020
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants