Skip to content

Conversation

othercorey
Copy link
Contributor

No description provided.

@cmb69
Copy link
Member

cmb69 commented Jun 24, 2022

I don't think this should be documented here. It is generally undefined behavior to pass values of unexpected types to an internal function.

@othercorey
Copy link
Contributor Author

So just drop the null entirely?

@cmb69
Copy link
Member

cmb69 commented Jun 24, 2022

Oh, right!

@othercorey
Copy link
Contributor Author

Should I say previously returned null on error without explaining? I guess it was just a mess when this stuff happened before throwing errors.

I'm simply updating missing docs after updating psalms function signatures.

@cmb69
Copy link
Member

cmb69 commented Jun 24, 2022

No, I wouldn't even mention the NULL on failure.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you!

@cmb69 cmb69 merged commit a51ec67 into php:master Jun 27, 2022
@othercorey othercorey deleted the fix-array-replace branch June 27, 2022 22:00
tiffany-taylor pushed a commit to tiffany-taylor/doc-en that referenced this pull request Jan 16, 2023
claudepache pushed a commit to claudepache/php-doc-en that referenced this pull request Jun 1, 2023
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.

2 participants