Issue #3408066 by yas: Refactor to use {$var} instead of using ${var} in strings which is deprecated in PHP 8.2
Closes #3408066