feat!: preserve the type of booleans, floats, scientific notations and integers when transforming back and forth between PostgreSQL and PHP #664
Annotations
4 errors
|
|
|
tests/MartinGeorgiev/Utils/DataStructureTest.php#L46
Method Tests\MartinGeorgiev\Utils\DataStructureTest::provideValidTransformations() should return list<array{phpValue: array, postgresValue: string}> but returns array{simple integer strings as strings are preserved as strings: array{phpValue: array{'1', '2', '3', '4'}, postgresValue: '{"1","2","3","4"}'}, simple integer strings: array{phpValue: array{1, 2, 3, 4}, postgresValue: '{1,2,3,4}'}, decimal numbers represented as strings are preserved as strings: array{phpValue: array{'1.23', '2.34', '3.45', '4.56'}, postgresValue: '{"1.23","2.34","3…'}, decimal numbers: array{phpValue: array{1.23, 2.34, 3.45, 4.56}, postgresValue: '{1.23,2.34,3.45,4…'}, mixed content with special characters: array{phpValue: array{'dfasdf', 'qw,,e{q"we', '\'qrer\'', 604, '"aaa","b""bb","ccc"'}, postgresValue: '{"dfasdf","qw,,e{q\\…'}, empty strings: array{phpValue: array{'', ''}, postgresValue: '{"",""}'}, empty array: array{phpValue: array{}, postgresValue: '{}'}, scientific notation as strings: array{phpValue: array{'1.23e4', '2.34e5', '3.45e6'}, postgresValue: '{"1.23e4","2.34e5",…'}, ...}.
|
|
src/MartinGeorgiev/Utils/DataStructure.php#L88
Cannot cast mixed to string.
|
|
src/MartinGeorgiev/Utils/DataStructure.php#L49
Parameter #2 $array of function array_map expects array, mixed given.
|
The logs for this run have expired and are no longer available.
Loading