A few projects using Stash (some of whom are on this list) are still committing to 5.4 support, and I don’t want to tell them they can’t use PSR6 as a result.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/0963CD15-4A42-41E9-A941-ED4DDD6617B2%40tedivm.com.
expiresAt()) that accepts either a DateTime or DateTimeImmutable, and so its docblock specifies DateTimeInterface
--
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 php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/563A2EBD.5010504%40garfieldtech.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/ee3671e5-bceb-4814-af4c-b0f8fa652104%40googlegroups.com.
I didn't suggest setting PHP-7 as a minimum requirement?
"Furthemore it's not like moving them from docblock to actual code will actually bring some tangible value to it." <- That's ridiculous. Of course they bring value.
As has already been mentioned, this group is about making standards that last. By the time this PSR has gone through the review stage PHP 7 will have been released, it makes sense for it to accommodate those wanting to use PHP 7 features.
On top of this, there is absolutely no cost to doing it this way. Composer selects the version of the interfaces based on your environment - that way if PHP can enforce the specification (as written), it does.
On Tuesday, November 10, 2015 at 5:12:29 PM UTC, Dracony wrote:the PSRs have to stay in the field of practicality. Setting PHP7 as a minimum requirement is imparctical at this time. Furthemore it's not like moving them from docblock to actual code will actually bring some tangible value to it.
On Tuesday, November 3, 2015 at 9:28:45 PM UTC+1, Larry Garfield wrote:As long as we're not yet back in Review, there's one more minor point
that I realized. We have a method (expiresAt()) that accepts either a
DateTime or DateTimeImmutable, and so its docblock specifies
DateTimeInterface. However, since DateTimeInterface was introduced in
PHP 5.5 the code itself doesn't specify a type. It's left technically
untyped, which means the interface is compatible all the way back to PHP
5.3.
However, PHP 5.5 is already the legacy, security-only version of PHP.
Does that mean we should go ahead and include DateTimeInterface in the
interface? That would make PSR-6 require PHP 5.5. W3Techs reports that
as being only 13% of the market[1], but most major projects with
releases this year have moved to 5.5 anyway (Symfony3, Zend 3, Drupal 8,
Guzzle 6, many others) so it's likely a done-deal for anyone that would
bother using it. http://phpversions.info/ also indicates that 5.5 is not
exactly hard to come by.
I am not going to delay the PSR too long on it, so if this is a
controversial suggestion I will drop it and move on as is. But I figure
it's worth throwing it out there. Are we comfortable requiring 5.5 for
a PSR interface in a case where it makes sense for the spec?
--
--Larry Garfield
--
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 php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/cbd28b28-6395-4e08-88e5-b3d5540e2c0d%40googlegroups.com.
--
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 php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/5645D226.4000309%40beccati.com.
You received this message because you are subscribed to a topic in the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/php-fig/bzLR5bgk2Ug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CANeXGWU9eHt20tCWYDG3hr40tGT%2BO1UmFmc9xpeAyq748%3DgXqQ%40mail.gmail.com.
Opting not to typehint against DateTimeInterface makes this a much worse spec.
On Friday, November 13, 2015 at 11:17:10 AM UTC-8, Navarr Barnier wrote:I think the only appropriate way to go with this is to support the lowest common denominator - 5.4 for better framework interop.
Dracony, are all the versions that do not implement the datetime interface not EOL now anyway? So what would be different in a year or 2 down the line. People will still want to support outdated versions. Either it gets done now, or it won't get done is how I think this will end up going.
Also. Updating it with a different PSR down the line will add more confusion than versioning this one I think, because then there will be either 2 competing PSRs, or a PSR that is now EOL with many projects supporting a now unsupported PSR.
--
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 php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/f0ec49f8-3915-4a47-9b39-8489b34423a6%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/php-fig/bzLR5bgk2Ug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAAn%3DCzVpESQmcXBenGFbGA3r1A3oZgj1p7_m%3D5kqG2fk5zRsCQ%40mail.gmail.com.
I think it is safe enough to assume that by
the time PSR-6 is adopted, PHP 5.4 compatibility most likely won't be a
requirement anymore.
There might be a few exceptions that can roll out PSR-6 compatibility
sooner than that, but then again \DateTimeInterface is just in the
phpdoc @param, so there is no error being triggered on PHP 5.4.
--
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 php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/323c5286-4f98-4fd2-a953-21ffdf9c1bff%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/f3b7737a-a1c2-4c4e-b16c-9c0ae975006d%40googlegroups.com.
What is that controversial point? For those not attending php[world] tomorrow
You received this message because you are subscribed to a topic in the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/php-fig/bzLR5bgk2Ug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/564CF637.3080005%40garfieldtech.com.
Ultimately the libraries can provide a PSR-ish compatibility layer for 5.4 and below. And also its a slight convincing nudge to upgrade to 5.5 in a sort of GoPHP5.5 kind of way
PHP >= 5.5 is fine for me.
--
You received this message because you are subscribed to a topic in the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/php-fig/bzLR5bgk2Ug/unsubscribe.
To unsubscribe from this group and all its topics, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/0def4b19-57f5-4aee-8ad6-51c45b84c61a%40googlegroups.com.
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 php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CANamvv1tvnXDq9X0_YeQp6FcWzki8x9AtsFLZTBQdBRGXPgJcw%40mail.gmail.com.