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

Make ctype_digit and ctype_lower work as assertions #8450

Merged
merged 1 commit into from Sep 5, 2022

Conversation

fluffycondor
Copy link
Contributor

Make ctype_digit assert for numeric-string, and ctype_lower for non-empty-lowercase-string.
I've implemented it as @orklah advised it here, but I've added two skipped tests that would fail with this naive implementation. It can be ignored though, because passing ints to ctype_* functions was deprecated in PHP 8.1.

@fluffycondor
Copy link
Contributor Author

Looks like that code style test fails isn't my fault :)

@orklah orklah added the release:feature The PR will be included in 'Features' section of the release notes label Sep 5, 2022
@orklah
Copy link
Collaborator

orklah commented Sep 5, 2022

Thanks!

passing ints to ctype_* functions was deprecated in PHP 8.1.

Interesting, we should consider updating the callmap to reflect this from 8.1. It would prepare people to stop sending anything else than strings in there

@orklah orklah merged commit cfe7fd1 into vimeo:4.x Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:feature The PR will be included in 'Features' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants