yiisoft / yiisoft/config

Check circular references

Open
#164 0 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

 'config-plugin' => [
            'params' => 'params.php',
            'params1' => '$params2',
            'params2' => '$params3',
            'params3' => '$params1',
        ],
    ],
);

$config->get('params3');

This should to throw specific exception about circular reference.

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 tracing the configuration resolution path reached by $config->get('params3') and reproduce the circular params1params2params3 reference. Done means the lookup raises a specific circular-reference exception rather than recursing indefinitely, with a regression test covering this example.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.