Jean85/pretty-package-versions

Deprecated methods and their replacements

Closed this issue · 4 comments

Hi!

2.0 version renamed some *CommitHash methods to Version::getReference, Version::getShortReference and Version::getVersionWithShortReference.

Would it be possible to add these new methods to 1.5 as a forward compatibility layer?

I require this package as ^1.5 || ^2.0 and what happens is that Psalm reports that I am using a deprecated method, however, there is no way to get rid of the deprecation message (other than ignoring it in Psalm) since those new methods are not available in 1.5.

I hope I am clear enough with my issue :)

Thanks!

Perfectly clear! Yes, I'm sure that we can do that. We could tag that as 1.6, to make it easier to require it correctly.

1.6 sounds perfect!

Thanks @Jean85 !