Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Apr 8, 2022

@yurii-github

This comment was marked as abuse.

Copy link
Member

@arnaud-lb arnaud-lb left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

LGTM, only nits in tests

var_dump(test(true));

?>
===DONE===
Copy link
Member

Choose a reason for hiding this comment

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

Unnecessary

function test(true $v = null) {}

?>
===DONE===
Copy link
Member

Choose a reason for hiding this comment

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

Might be better to actually pass null and true

@Girgias Girgias merged commit 0ae6a67 into php:master Jun 12, 2022
@Girgias Girgias deleted the true-as-type branch June 12, 2022 22:28
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Jun 20, 2022
…HP 8.2) (bobahvas, alexandre-daubois)

This PR was merged into the 6.2 branch.

Discussion
----------

[Serializer] Add support of true built-in type (from PHP 8.2)

| Q             | A
| ------------- | ---
| Branch?       | 6.2
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

RFC: https://wiki.php.net/rfc/true-type
Pull request: php/php-src#8326

Same as this PR to add support of `false` and `null` types: #45981

Commits
-------

2ec0453 [Serializer] Add support of true built-in type (from PHP 8.2)
jrfnl added a commit to PHPCompatibility/PHPCompatibility that referenced this pull request Jan 8, 2023
jrfnl added a commit to PHPCompatibility/PHPCompatibility that referenced this pull request Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants