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

Filter out internal PHP functions from set #109

Merged
merged 5 commits into from
Jun 2, 2023
Merged

Conversation

driftingly
Copy link
Owner

This PR filters out internal PHP functions from the laravel-array-str-functions-to-static-call set.

Closes #107

@driftingly driftingly force-pushed the adc/set-use-native branch from bf5349f to ca8922d Compare June 1, 2023 22:35
@driftingly driftingly force-pushed the adc/set-use-native branch from 409f7ba to 51a289d Compare June 1, 2023 22:36
@driftingly driftingly merged commit 2e065f4 into main Jun 2, 2023
@driftingly driftingly deleted the adc/set-use-native branch June 2, 2023 15:59
driftingly added a commit that referenced this pull request Jun 7, 2023
* Filter out internal PHP functions
@johnbacon
Copy link
Contributor

Hi @driftingly, could we make filtering out internal PHP functions optional?

There are often differences between the helpers and related PHP functions. For example, the inspiration for this PR (str_contains) doesn't accept an array of strings. We'd like to standardize the use of static helpers when possible.

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.

\str_contains should not be replaced by Str::contains when on PHP 8+
3 participants