Skip to content

[4.x] fix StringHelper::strspn (deprecation message)#68

Open
heelc29 wants to merge 1 commit into
joomla-framework:4.x-devfrom
heelc29:4.x/stringhelper/bug-strspn
Open

[4.x] fix StringHelper::strspn (deprecation message)#68
heelc29 wants to merge 1 commit into
joomla-framework:4.x-devfrom
heelc29:4.x/stringhelper/bug-strspn

Conversation

@heelc29

@heelc29 heelc29 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Pull Request for Issue #

Summary of Changes

if (0) {} is validated as false
so this call StringHelper::strspn('321 Main Street', '0123456789', 0, 2); results in wrong deprecation message:
\Joomla\String\StringHelper::strspn(): Passing null to parameter #3 ($start) of type int is deprecated

Testing Instructions

execute StringHelper::strspn('321 Main Street', '0123456789', 0, 2);
result is 2 but without wrong deprecation message

Documentation Changes Required

no

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.

1 participant