Why slash is removed after domain?

I just hit this issue as well and realised I had:

define( 'PATH_CURRENT_SITE', '' );

in one of my configs and it should’ve been:

define( 'PATH_CURRENT_SITE', "https://wordpress.stackexchange.com/" );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)