yiisoft / yiisoft/validator

Throw `LogicException` instead of `RuntimeException` when requiring dependency

Open
#741 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:task
Dominant language
PHP
Stars
167
Forks
47
Avg merge
1d 19h
Merged PRs (30d)
3

Description

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 src/ValidationContext.php at the linked line around 337 and inspect the dependency-requiring path. Change the exception type raised there from RuntimeException to LogicException, then verify that the resulting behavior matches the issue request.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.