Skip to content

Conversation

alies-dev
Copy link

Add migging #[Pure] attributes to new PHP 8.4 methods

/**
* @since 8.3
*/
#[Pure]
Copy link
Contributor

Choose a reason for hiding this comment

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

@alies-dev Shouldn't the functions be marked as #[Pure(true)] instead, since AFAIU they can depend on global state if $encoding parameter isn't passed. In this case, mb_internal_encoding() will be used, which can depend on the global state. Could you please double-check?

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