Releases: phlib/path
Releases · phlib/path
2.2.0
Removed support for PHP <= v8.0 as they are no longer actively supported by the PHP project.
See Change Log for full details.
2.1.0
- Add support for PHP v8.
See Change Log for full details.
2.0.0
Removed support for PHP <= v7.2 as they are no longer actively supported by the PHP project.
See Change Log for full details.
1.0.4
Add PHP version constraints to Composer config.
See Change Log for full details.
Fix double separator issue
Refactor `trimEmptyParts` to not use `array_filter` We need to use the `ARRAY_FILTER_USE_BOTH` flag if we use `array_filter`, since we need to check the index in the filtering logic; however, this flag wasn't added until PHP 5.6, and we're supposed to be supporting back to PHP 5.4. Instead use `foreach`, and build a filtered array by appending elements from the parts array which we want to keep.
Fix info return value
Correct the logic for when to return a single value from `info` This should only be returning a single value if the user explicitly asked for just one info property, otherwise return an array. This was the behaviour for the most part, but was previously failing where not all of the info keys were set on the internal info array.
Handle empty paths
Merge pull request #1 from phlib/fix-empty-paths Fix empty paths
Initial release
1.0.0 Add packagist/travis readme badges