Skip to content

Conversation

@staabm
Copy link
Owner

@staabm staabm commented Feb 2, 2022

closes #222

since phpstan-dba is agnostic to the used db driver at runtime (atm we support mysqli, pdo and doctrine dbal), I decided against a "smart" default depending on php-version.

per default we use the most precise typing. in case the db driver is fixed to string types, there is a new stringifyTypes($bool) method at the RuntimeConfiguration object.

@staabm staabm changed the title added stringify types option added stringify types RuntimeConfiguration option Feb 2, 2022
@staabm staabm marked this pull request as ready for review February 3, 2022 10:58
@staabm staabm enabled auto-merge (squash) February 3, 2022 10:58
@staabm staabm merged commit 70bdda6 into main Feb 3, 2022
@staabm staabm deleted the strings branch February 3, 2022 10:59
@staabm staabm changed the title added stringify types RuntimeConfiguration option added stringifyTypes to RuntimeConfiguration option Feb 3, 2022
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.

Return type for integers should be numeric-string

3 participants