yiisoft / yiisoft/config

Do not error on absent config files

Open
#124 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:enhancement
Dominant language
PHP
Stars
34
Forks
9
Avg merge
1h 7m
Merged PRs (30d)
1

Description

Problem

Too many files returning [] in application's config directory.

Solution

Return [] if the file is not found instead of throwing exception.

To save clarity about what config files are read we can do https://github.com/yiisoft/config/issues/125

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

Start by locating the config readers that return [] and reproduce the exception caused by an absent file. Done means missing config files return [] without an exception while existing-file behavior remains unchanged; issue 125 may provide context on which config files are read.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.