link0 / bunq

API client in PHP for bunq
MIT License
8 stars 13 forks source link

Bump PHP version to 7.1 to allow 'void' return types and nullables #28

Open holtkamp opened 7 years ago

holtkamp commented 7 years ago

Might be an idea to bump the required version a bit, so PHPDoc can be cleaned up a bit 😄

https://github.com/link0/bunq/blob/0305a271c03eccb0928ce26bb66f568edb24de71/composer.json#L17

dennisdegreef commented 7 years ago

Hi @holtkamp

This seems like a good idea, although can you provide me some examples in which void/nullables would add real benefit over excluding 7.0.X PHP versions from being able to install?

We can then make an informed decision on the added benefit versus compatability.

Thanks!

holtkamp commented 7 years ago

can you provide me some examples in which void/nullables would add real benefit

hehe, no, not really 😄 , but as soon you start to use them you will realize why, static analysis tools like PHPStan really start to add value. Stricter code allows less room for errors in my opinion / experience...

Also see https://laracasts.com/series/whats-new-in-php-7-1/episodes/3

dennisdegreef commented 7 years ago

I agree that stricter code reduces error, and I know what value they add :) I just wonder how much of an added value it provides in comparison with how much users (still on 7.0) you would rule out being able to use this library.

I think I will bump the requirement after a while, and keep a few versions compatible. If you (or anyone for that matter) have suggestions for where this 'sweetspot' should be, feel free to comment.

holtkamp commented 7 years ago

ok, the difference between 7 and 7.1 is quite small IMHO while it does add a lot of nice features... While this project / library is young and no stable version is released, you can do whatever you want, right 😄