Yes this is already fixed in the doctrine layer which should be updated in your project.
If you use the latest Laravel it should already be fixed for quite some time! However if you want it to be fixed in your PHP version you either need to update doctrine/dbal to a newer version!
Note: I'm not sure if this will work, but I expect it to work! Also never just update your database server without testing! As you see it might give errors!