Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with master branch #715

Closed
wants to merge 21 commits into from
Closed

Sync with master branch #715

wants to merge 21 commits into from

Conversation

arogachev
Copy link
Contributor

Q A
Is bugfix?
New feature?
Breaks BC?

@arogachev arogachev requested a review from a team May 27, 2024 12:43
@arogachev arogachev marked this pull request as ready for review May 27, 2024 12:43
@arogachev arogachev self-assigned this May 27, 2024
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add link to this file from readme in root


### Rules

- [Built-in rules](built-in-rules.md)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken link. Check other links also

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add line to changelog

* use Yiisoft\Validator\ValidationContext;
*
* final class MyRuleHandler implements RuleHandlerInterface
* {
* public function validate(mixed $value, object $rule, ValidationContext $context): Result
* public function validate(mixed $value, RuleInterface $rule, ValidationContext $context): Result
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this version need object.

@@ -65,6 +68,9 @@ public function __construct(
private bool $skipOnError = false,
private Closure|null $when = null
) {
if ($min > count($this->attributes)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add line to changelog

@@ -35,6 +35,8 @@ public function validate(mixed $value, object $rule, ValidationContext $context)
$rules = $rule->getRules();
$result = new Result();

$originalEachKey = $context->getParameter(Each::PARAMETER_EACH_KEY);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add line to changelog

@samdark
Copy link
Member

samdark commented May 28, 2024

I don't think we need to backport changes from next major version into 1.x.

@vjik vjik closed this Jun 11, 2024
@vjik vjik deleted the sync-with-master-branch branch June 11, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants