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

Add true as a type #8326

Merged
merged 2 commits into from
Jun 12, 2022
Merged

Add true as a type #8326

merged 2 commits into from
Jun 12, 2022

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Apr 8, 2022

Zend/zend_compile.c Show resolved Hide resolved
@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