On Saturday, October 21, 2017 at 4:19:20 PM UTC-4, Tobias Nyholm wrote:
>
> While reviewing PSR-18 I found a suggestion to make our base exception to 
> implement \Throwable. So, should new PSRs support PHP 7 only or do we still 
> need PHP 5 support?
>
> Like someone said, "PHP5 is dying, just kill it already". I like to agree 
> with that. But at the same time, I do not what the guzzle/buzz community to 
> choose between implementing this PSR or supporting PHP5. 
>
> I would like the core committee to give me (and other authors of new PSRs) 
> a unified recommendation: Should new PSRs support PHP5 or not? 
>
>
Given that PSRs packages are just interfaces, the problem space comes down 
to type hinting and that’s basically it. There’s no need for an interface 
only file to have a declare(strict_types); declaration since it has no 
effect on a file with no real code. The nature of exceptions (implements 
\Throwable versus extends \Exception) falls on the edge of the type hinting 
issue.


So the question is: How much do we want scalar type hinting (and return 
type hinting, throwable, iterable) in PSRs?  Do we want these things enough 
to exclude PHP 5 consumers? More to the point, who is our real audience? I 
don’t think our audience is WordPress (still defining their minimum version 
as 5.2.5). Is our audience a bunch of green fielders who are pulling in 
Symfony 4 (which requires 7.1+) ?

My hot take is to generally agree with Larry (7.0+ is reasonable where 
there's a demonstrable benefit, but 7.1 borders on aggressive).  I don't 
quite agree that it's /too/ aggressive, but it should be tempered by some 
degree of conservatism.

Personally, I'd like to hear from project reps.  What are your various 
positions on minimum versions?

-Sara

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/5925e17f-f6ef-4b5f-a433-06c82c185386%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to