On 09 Feb 2015, at 16:04 , Sebastian Bergmann <sebast...@php.net> wrote: > > Am 09.02.2015 um 15:50 schrieb Pierre Joye: >> Not strict? You loose me here. > > I want support for scalar types in signatures. I want these type > declarations to be strictly enforced. This is not wanted and not > proposed by the RFC. Hence my vote.
It is, from your point of view, the provider of a API, strictly enforced: you’ll get exactly the type you asked for. The current RFC is clever in this way, it makes sure the library author gets the types they want, and the user of it can freely choose mode as he see fit and is skilled for. I’m sure we can easily do a followup RFC to add a ini setting/argument, to be able to run unit test in strict mode by default, unless for instance code specifically declares strict_types=0. Which I guess would be great for PHPUnit runs to really get full control over what kind of types we use throughout our code. So to summarize: This RFC gets you a ton of a lot closer to the strictness you (and I), would like to use for at least our test runs.. Best, André