Skip to content

Doc for Text::mask()#8282

Merged
ADmad merged 3 commits intocakephp:5.nextfrom
SadiHassan:mask-func-doc-v0
Apr 15, 2026
Merged

Doc for Text::mask()#8282
ADmad merged 3 commits intocakephp:5.nextfrom
SadiHassan:mask-func-doc-v0

Conversation

@SadiHassan
Copy link
Copy Markdown

@SadiHassan SadiHassan commented Apr 15, 2026

Summary

Adds documentation for the newly implemented Text::mask() method in Cake\Utility\Text, which allows masking a portion of a string using a repeated character.

Includes:

  • Explanation of the function
  • Examples demonstrating usage via TextHelper and static calls

Related: this PR.

@SadiHassan SadiHassan changed the title Text::mask() Doc update Doc for Text::mask() Apr 15, 2026
@dereuromark
Copy link
Copy Markdown
Member

Migration guide is missing

@SadiHassan
Copy link
Copy Markdown
Author

Thanks. Added this under the Core part in 5-4-migration-guide.md file, is it the correct place? I couldn't find a guide file under 5-next or something.

@ADmad
Copy link
Copy Markdown
Member

ADmad commented Apr 15, 2026

Added this under the Core part

It should be under Utility. If utility section isn't present please add one.

@SadiHassan
Copy link
Copy Markdown
Author

Makes sense, moved under Utility.

@ADmad ADmad merged commit 5b47f4f into cakephp:5.next Apr 15, 2026
6 checks passed
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.

3 participants