This is what I\'ve read so far about PDO::ATTR_EMULATE_PREPARES:
For the record
PDO::ATTR_EMULATE_PREPARES=true
It could generate a nasty side effect. It could return int values as string.
PHP 7.4, pdo with mysqlnd.
Column : id
Type :integer
Value : 1
Column : id
Type :string
Value : "1"
In any case, decimal values are always returned a string, regardless of the configuration :-(