Fix class name handling in DeprecationHelper
authorGergő Tisza <tgr.huwiki@gmail.com>
Fri, 19 Apr 2019 07:36:33 +0000 (00:36 -0700)
committerGergő Tisza <tgr.huwiki@gmail.com>
Fri, 19 Apr 2019 08:09:25 +0000 (01:09 -0700)
commita015ee72aedd19df9b4647636d18130048e0f59c
tree841a978f0e4a0bf3a3f32ca58c263240709e68be
parente77e1bcbf7ab008b071a15230654f4ca9a912df8
Fix class name handling in DeprecationHelper

The method for getting the declaring class name was not used when
printing the class name, and was incorrect anyway. Use reflection
when on the error path to ensure the correct class name is used.

Change-Id: Ic9cd4319535d5ab877a0563e0433371e1025d985
includes/debug/DeprecationHelper.php
tests/phpunit/includes/debug/DeprecationHelperTest.php
tests/phpunit/includes/debug/TestDeprecatedSubclass.php