Fix publish options in bundle examples
Open
Beginner friendly
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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