PECL Ds\Map numeric string key warnings are incorrect
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- php
- Domain
- documentation
Research direction
Start with the PECL Ds\Map documentation for the get and set manual pages linked in the issue, then locate the caution text about numeric string keys. Update the wording to reflect that Ds\Map preserves numeric string keys for both access forms, and verify both pages no longer make the incorrect claim.
Written by the indexing model from the issue text.
Description
From manual page: https://php.net/ds-map.get and https://php.net/ds-map.set
Both pages read
Caution
Be careful when using array syntax. Scalar keys will be coerced to integers by the engine.
For example, $map["1"] will attempt to access int(1), while $map->get("1") will correctly look up the string key.
See [Arrays](https://www.php.net/manual/en/language.types.array.php).
This is incorrect (probably outdated), Ds\Map preserves and expects numeric string keys as string no matter how you access them.
- Dominant language
- XML
- Stars
- 2
- Forks
- 6
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from php/doc-extensions
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
php/doc-extensions#23 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
php/doc-extensions#28 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
php/doc-extensions#13 · 11 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
php/doc-extensions#27 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
php/doc-extensions#21 · 1 comment ·
All issues in php/doc-extensions
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Ecosystem: ClawMetry — the Qwen Code reader is now free and open source (follow-up to #9294 / #9338) Opencategory/integration priority/P3 scope/documentation status/ready-for-human type/feature-request
Difficulty 1/5 Under an hour Newbie friendliness 84/100