yiisoft / yiisoft/assets

Fix publish options in bundle examples

Open Beginner friendly
#168 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue type:docs
Dominant language
PHP
Stars
21
Forks
17
Avg merge
20m
Merged PRs (30d)
1

Description

Description

https://github.com/yiisoft/assets/blob/master/docs/guide/en/asset-bundles.md

Currently, examples are incorrect:

public array $publishOptions = [
    'only' => [
        'css/bootstrap.css',
        'js/bootstrap.js',
    ]
];

only option doesn't exist. filter should be used instead.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open docs/guide/en/asset-bundles.md and review the publishOptions examples containing the unsupported only option. Replace those examples with the filter option and confirm the documented PHP syntax and example behavior match the requested correction.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.