Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Multibyte trim support

Aperta
#820 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

Start at the WhenEmpty check and its WhenEmpty::$trimString option, then compare the current trimming behavior with the UTF-8 spaces and characters handled by mb_trim(). Trace the existing validation coverage for WhenEmpty and add coverage showing that multibyte empty content is removed when trimming is enabled; done means the relevant validation accepts the same empty-content characters as mb_trim().

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Proposed new feature or change

Followup to https://github.com/yiisoft/hydrator/issues/130

When trim in WhenEmpty check is on (when WhenEmpty::$trimString is true),
It should also remove UTF-8 specific spaces and other characters that are considered empty content, just like mb_trim() does.

Lingua principale
PHP
Stelle
167
Fork
47
Merge medio
1g 16h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di yiisoft/validator

Tutte le issue di yiisoft/validator

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.