# Search results for "Parameter (and Return) value type hints/checks"

9 results, page 1 of 1. Each result is an email: results with the same thread number are in the same thread. The link opens the thread as Markdown, find the email in it by its number.

More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

1. [[RFC] Strict type hints (parameter and return value)](https://externals.io/message/38260.md) — email #38260 in thread #37068, by Chris Stockton on 2008-06-15
   > … unnecessary **checks** **and** irrelevant errors. As I said, I see no difference that could matter to PHP programmer between '1' **and** 1, **and** I don't see why we should encourage making this difference. I know there could be very …
2. [[RFC] Type hints (parameter and return value)](https://externals.io/message/37132.md) — email #37132 in thread #37049, by Sam Barrow on 2008-04-18
   > … even if strict **type** hinting is used/implemented. Maybe a **type** hint of mixed? Of course; we don't make **type** hinting necessary, just **type** the variable name with no **type** hint as you would now **and** no **type** **check** …
3. [Introducing "Array Of" RFC](https://externals.io/message/71146.md) — email #71146 in thread #71143, by Andrea Faulds on 2014-01-15
   > … seems that a check for NULL is implemented for the actual **parameter** which is perfectly fine (done for other **type** **hints** as well) but it also **checks** if all members of an array are not NULL **and** the check **returns** …
4. [Stricter implicit boolean coercions](https://externals.io/message/117619.md) — email #117619 in thread #117608, by Christian Schneider on 2022-04-26
   > … so this is not about determining truthiness, but actual conversions to a bool **type**, like a bool **parameter**, a bool **return** **type** or a bool property **type**. I see, so as long as there are no bool **type** **hints** for …
5. [Accept null type hint in C](https://externals.io/message/19764.md) — email #19764 in thread #19754, by Marcus Boerger on 2005-10-27
   > … Inside of zend_parse_arg_impl, the ! gets set to char c **and** spec_walk gets incremented which makes the **check** for the null operator fail **and** also makes the **check** for arg **type** **check** the ! in the switch case …
6. [Type hints with null default values](https://externals.io/message/13351.md) — email #13351 in thread #13348, by Robert Silva on 2004-10-16
   > … $formatter=null) { if (isset($formatter)) **return** $formatter->Format($this); else **return** $this; } Now the argument can be made to not **type** hint $formatter to begin with, but I don't want to have to **check** that it isnt null **and** …
7. [Allow dropping typehints during inheritance](https://externals.io/message/81908.md) — email #81908 in thread #81834, by Andrea Faulds on 2015-02-05
   > … **and** autoloading, as we discovered with the **Return** Types RFC. I think that we’d probably support full contravariance for **parameters** if we could. However, we could easily support contravariance in **type** hint existence, as that doesn’t require subclassing …
8. [Return Type Hinting for Methods RFC](https://externals.io/message/57046.md) — email #57046 in thread #56974, by keisial@gmail.com on 2011-12-23
   > … null to a **parameter** expecting a given class (though you can allow it). The point isn't to restrict a **type** **hint** to always be returned. The goal is to guarantee that if a **value** is returned, it will be …
9. [[RFC] Return type-hint](https://externals.io/message/52062.md) — email #52062 in thread #49158, by Martin Scotta on 2011-04-28
   > … as far as error reporting is concerned. I think **type** **checki**ng for **parameters** can provide cheap **and** useful validation, as **parameters** passed in are outside the function's control. But **return** **values**? They are within the function's control, **and** …
