bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
19 Oct 2025

Pull Request for Issue # .

Summary of Changes

Fixing type check to be WebAssetItemInterface instead of hardcoded WebAssetItem class.
Which is allows to use custom classes.

Testing Instructions

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);
    }
};

Actual result BEFORE applying this Pull Request

test class works

Expected result AFTER applying this Pull Request

test class works

Link to documentations

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

avatar Fedik Fedik - open - 19 Oct 2025
avatar Fedik Fedik - change - 19 Oct 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Oct 2025
Category Libraries
avatar Fedik Fedik - close - 19 Oct 2025
avatar Fedik
Fedik - comment - 19 Oct 2025

hm, it does not work

avatar Fedik Fedik - change - 19 Oct 2025
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

Add a Comment

Login with GitHub to post a comment