llaville / php-compatinfo

Library that find out the minimum version and the extensions required for a piece of code to run
https://llaville.github.io/php-compatinfo/7.1/
Other
371 stars 21 forks source link

5.0.2 phar does not detect yield / generators #226

Closed dennisverspuij closed 7 years ago

dennisverspuij commented 7 years ago

Hello, first of all thanks for this great utility! When I run the phpcompatinfo-5.0.2.phar downloaded from your website on files with generators it does not seem to raise the minimum PHP version to 5.5.0 . For example running on the following code I get 4.0.0 as minimum version:

<?php
function x($x) { yield $x; }

What am I doing wrong?

Auto-Diagnose:

Checking php settings:

llaville commented 7 years ago

Sorry for delay to reply. Much work at office, and less free times now ! I'll have a look this evening and I hope to publish a fix soon

llaville commented 7 years ago

Thanks for reporting. The new version 5.0.3 will be released in few minutes !

dennisverspuij commented 7 years ago

Fantastic, works, thanks!