User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Fixing type check to be WebAssetItemInterface instead of hardcoded WebAssetItem class.
Which is allows to use custom classes.
Code review by maintainers.
Create dummy class for b/k check:
$test = new class($wa->getRegistry()) extends \Joomla\CMS\WebAsset\WebAssetManager{
protected function enableDependencies(?string $type = null, ?Joomla\CMS\WebAsset\WebAssetItem $asset = null): self
{
return parent::enableDependencies($type, $asset);
}
protected function getDependenciesForAsset(
string $type,
Joomla\CMS\WebAsset\WebAssetItem $asset,
$recursively = false,
?string $recursionType = null,
?Joomla\CMS\WebAsset\WebAssetItem $recursionRoot = null
): array {
return parent::getDependenciesForAsset($type, $asset, $recursionType, $recursionRoot);
}
};test class works
test class works
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-10-19 12:08:34 |
| Closed_By | ⇒ | Fedik | |
| Labels |
Added:
bug
PR-5.4-dev
|
||
hm, it does not work