Closed schorsch3000 closed 9 years ago
This update broke the __toString function
$version = Parser::parse('1.0.0+build.4'); $version->setMinor(1); echo $version;
now results in 1.0.0+build.4 in stead of the expected 1.1.0+build.4
please revert the change or provide an alternative to get the new version.
Maybe wo should revert the __toString() method and implement a getOriginalVersionString() method? also there shold be a testcase :) i can not work on this before sunday, but if this a way everyone is fine with i'll implement it
Fix seems acceptable. We'll also have to add a better test case to prevent changes from affecting __toString()
, since it's important.
yes i have test cases in mind to proof this. gonna do it tomorrow.
running
gives me
and there seems no method to get the original string back.
since i need to sort filenames and read the files based on the sortorder this is impossible for me.