Fix deprecation warning in Perfdata.php

fixes #6076