New in initializers (reduced version) by nikic · Pull Request #7153 · php/php-src

TysonAndre

@nikic

@nikic nikic mentioned this pull request

Jul 13, 2021

@nikic

fabpot added a commit to symfony/symfony that referenced this pull request

Aug 18, 2021
…e-daubois)

This PR was merged into the 5.4 branch.

Discussion
----------

[Validator] Add support of nested attributes

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #38503
| License       | MIT
| Doc PR        | symfony/symfony-docs#15541

Although the RFC (https://wiki.php.net/rfc/new_in_initializers) is in the voting phase (until 14 July), it is already well on its way to passing.

Based on `@nikic`'s development (php/php-src#7153), this makes the development of support possible. It will obviously take a little while before this pull request is merged.

If this pull request is OK for you, I'll get to work on writing the existing documentation for the attribute validation constraints.

![Capture d’écran du 2021-07-05 17-11-23](https://user-images.githubusercontent.com/2144837/124491886-0d2f7d80-ddb4-11eb-8147-493bdc6c48ac.png)

Not sure about the Symfony version to target, as `AtLeastOneOf` has been introduced in 5.1. Although, I couldn't find attributes validation documentation for 4.4.

Commits
-------

1449450 [Validator] Add support of nested attributes for composite constraints

symfony-splitter pushed a commit to symfony/validator that referenced this pull request

Aug 18, 2021
…e-daubois)

This PR was merged into the 5.4 branch.

Discussion
----------

[Validator] Add support of nested attributes

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | Fix #38503
| License       | MIT
| Doc PR        | symfony/symfony-docs#15541

Although the RFC (https://wiki.php.net/rfc/new_in_initializers) is in the voting phase (until 14 July), it is already well on its way to passing.

Based on `@nikic`'s development (php/php-src#7153), this makes the development of support possible. It will obviously take a little while before this pull request is merged.

If this pull request is OK for you, I'll get to work on writing the existing documentation for the attribute validation constraints.

![Capture d’écran du 2021-07-05 17-11-23](https://user-images.githubusercontent.com/2144837/124491886-0d2f7d80-ddb4-11eb-8147-493bdc6c48ac.png)

Not sure about the Symfony version to target, as `AtLeastOneOf` has been introduced in 5.1. Although, I couldn't find attributes validation documentation for 4.4.

Commits
-------

1449450e2f [Validator] Add support of nested attributes for composite constraints

jrfnl added a commit to PHPCompatibility/PHPCompatibility that referenced this pull request

Jan 3, 2023

@jrfnl jrfnl mentioned this pull request

Jan 3, 2023