For discussion: should we return DateTime or DateTimeImmutable?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start with the getDateTime("date-from") API and review how the library currently represents returned DateTime values. Resolve whether DateTime or DateTimeImmutable is the intended contract, then document the decision and update the relevant behavior or tests if the project identifies them.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
$dateFrom = $input->getDateTime("date-from");
What type of DateTime should this library return in this case? I like the simplicity of DateTime, and with it being a getter it probably doesn't matter about immutability of the object itself, but would it make more sense or would it potentially confuse someone if the returned object was DateTimeImmutable?
- Lingua principale
- PHP
- Stelle
- 3
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di phpgt/Input
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 42/100
Issue simili
-
needs-triage Platform(Default)
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
bug No Code Attached Yet
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
joomla/joomla-cms#48501 ·
-
sync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
sync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Перевод устарел
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100