Skip to content

Updated PDO function mapping for php8#827

Closed
adrien-lessard wants to merge 1 commit intophpstan:masterfrom
adrien-lessard:update-pdo-function-map
Closed

Updated PDO function mapping for php8#827
adrien-lessard wants to merge 1 commit intophpstan:masterfrom
adrien-lessard:update-pdo-function-map

Conversation

@adrien-lessard
Copy link

resources/functionMap.php is updated to reflect the function signatures of PHP 8 for the classes PDO and PDOStatement. Entries in resources/functionMap_php80delta.php should preserve backward compatibility to PHP 7.

The specific issue encountered was with the return value of PDO::fetchAll, which changed from 'array|false' to 'array'. The pull request can be limited to only fix PDO::fetchAll if the changes are too important.

@ondrejmirtes
Copy link
Member

Hi, these changes aren't needed as PHPStan merges functionMap with https://github.com/phpstan/php-8-stubs on PHP 8. If you have a specific bug you're trying to fix, please post a phpstan.org example first, thanks.

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