User tests: Successful: Unsuccessful:
Enhances the classmap stub generator by:
JLoader::getDeprecatedAliases()
which makes deprecation versions available@deprecated
tag (improves IDE integration by flagging the class as deprecatedApply the patch, run php build/stubGenerator.php
and review the generated stubs.php
file. In combination with #19050 you should see entries similar to this now:
Status | New | ⇒ | Pending |
Category | ⇒ | Repository |
Labels |
Added:
?
|
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Ready to Commit after two successful tests.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-12-23 15:55:43 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
|
As a workaround, I load the classmap file and extract the correct class names via a small regex:
$class_map = file_get_contents(JPATH_ROOT.'/libraries/classmap.php');
preg_match_all('@\(\'(.*)\',@U', $class_map, $classes_old);
and then set the correct name before assigning it to the file variable:
foreach($classes_old[1] as $class_old)
{
if($oldName == strtolower($class_old))
{
$oldName = $class_old;
break;
}
}
Result:
Ah, I've just seen your solution. Thank you, Michael!
I have tested this item✅ successfully on 8328f90
Was waiting for this, thanks
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19138.