Skip to content

Releases: phlib/path

2.2.0

09 Feb 16:53
632ee36

Choose a tag to compare

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

11 Sep 07:40

Choose a tag to compare

  • Add support for PHP v8.

See Change Log for full details.

2.0.0

10 Dec 09:27
2.0.0
6e07465

Choose a tag to compare

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

09 Dec 16:45
1.0.4
8213f42

Choose a tag to compare

Add PHP version constraints to Composer config.

See Change Log for full details.

Fix double separator issue

15 Aug 09:54

Choose a tag to compare

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

03 Aug 15:15

Choose a tag to compare

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

22 Jul 09:50

Choose a tag to compare

Merge pull request #1 from phlib/fix-empty-paths

Fix empty paths

Initial release

15 Jul 14:35

Choose a tag to compare

1.0.0

Add packagist/travis readme badges