# Type hinting question

- Thread: https://externals.io/message/36663
- Original archive: https://news-web.php.net/php.internals/36663
- Started by Sam Barrow on 2008-03-28T19:13:51+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #36663 — Sam Barrow — 2008-03-28T19:13:51+00:00

URL: https://externals.io/message/36663#36663

Not bringing the issue back up on the list, I was just wondering if
there is a supporter of type hinting that would be willing to help me
implement an automatic conversion of objects with a __tostring() method
to strings if the object was passed as an argument with a string type
hint.

---

## #36703 — christian.mueller@dfpx.de — 2008-03-31T08:59:05+00:00

URL: https://externals.io/message/36663#36703 · In reply to: #36663

Sam Barrow schrieb:
> Not bringing the issue back up on the list, I was just wondering if
> there is a supporter of type hinting that would be willing to help me
> implement an automatic conversion of objects with a __tostring() method
> to strings if the object was passed as an argument with a string type
> hint.

Oi

Willing, but quite unable ... or i don't exactly know what helping might 
involve ^^
I suspect C-programming and patch-testing ... if you are willing to 
share some knowledge with the latter, count me in.
