Skip to content

Commit

Permalink
v2.6.2
Browse files Browse the repository at this point in the history
Changelog excerpt:
- Allow dots to be escaped for dataTraverse in the operation handler.
  • Loading branch information
Maikuolan committed Jul 2, 2021
1 parent 7ba5a62 commit 8a9b882
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 23 deletions.
9 changes: 9 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ found at:

(none)

=== Version/Release 2.6.2 ===
PATCH RELEASE.

- [2021.07.02; Maikuolan]: Allow dots to be escaped for dataTraverse in the
operation handler.

Caleb M (Maikuolan),
July 2, 2021.

=== Version/Release 2.6.1 ===
PATCH RELEASE.

Expand Down
4 changes: 2 additions & 2 deletions src/Cache.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* A simple, unified cache handler (last modified: 2021.05.22).
* A simple, unified cache handler (last modified: 2021.07.02).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -160,7 +160,7 @@ class Cache
* be needed by some implementations to ensure compatibility).
* @link https://github.com/Maikuolan/Common/tags
*/
public const VERSION = '2.6.1';
public const VERSION = '2.6.2';

/**
* Construct object and set working data if needed.
Expand Down
4 changes: 2 additions & 2 deletions src/ComplexStringHandler.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Complex string handler (last modified: 2021.05.22).
* Complex string handler (last modified: 2021.07.02).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -37,7 +37,7 @@ class ComplexStringHandler
* be needed by some implementations to ensure compatibility).
* @link https://github.com/Maikuolan/Common/tags
*/
public const VERSION = '2.6.1';
public const VERSION = '2.6.2';

/**
* @param string $Data The data supplied to the class at object instantiation.
Expand Down
4 changes: 2 additions & 2 deletions src/DelayedIO.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Delayed file IO class (last modified: 2021.05.22).
* Delayed file IO class (last modified: 2021.07.02).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -47,7 +47,7 @@ class DelayedIO
* be needed by some implementations to ensure compatibility).
* @link https://github.com/Maikuolan/Common/tags
*/
public const VERSION = '2.6.1';
public const VERSION = '2.6.2';

/**
* Read a file, or fetch from object memory if already read before.
Expand Down
4 changes: 2 additions & 2 deletions src/Demojibakefier.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Demojibakefier (last modified: 2021.05.22).
* Demojibakefier (last modified: 2021.07.02).
*
* Intended to normalise the character encoding of a given string to a
* preferred character encoding when the given string's byte sequences don't
Expand Down Expand Up @@ -57,7 +57,7 @@ class Demojibakefier
* be needed by some implementations to ensure compatibility).
* @link https://github.com/Maikuolan/Common/tags
*/
public const VERSION = '2.6.1';
public const VERSION = '2.6.2';

/**
* @param string $NormaliseTo The encoding to normalise to (defaults to UTF-8).
Expand Down
4 changes: 2 additions & 2 deletions src/Events.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Events orchestrator (last modified: 2021.05.22).
* Events orchestrator (last modified: 2021.07.02).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -32,7 +32,7 @@ class Events
* be needed by some implementations to ensure compatibility).
* @link https://github.com/Maikuolan/Common/tags
*/
public const VERSION = '2.6.1';
public const VERSION = '2.6.2';

/**
* Adds a new event handler.
Expand Down
4 changes: 2 additions & 2 deletions src/L10N.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* L10N handler (last modified: 2021.05.22).
* L10N handler (last modified: 2021.07.02).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -52,7 +52,7 @@ class L10N
* be needed by some implementations to ensure compatibility).
* @link https://github.com/Maikuolan/Common/tags
*/
public const VERSION = '2.6.1';
public const VERSION = '2.6.2';

/**
* For when there aren't multiple forms.
Expand Down
4 changes: 2 additions & 2 deletions src/Matrix.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Matrix handler (last modified: 2021.05.22).
* Matrix handler (last modified: 2021.07.02).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -42,7 +42,7 @@ class Matrix
* be needed by some implementations to ensure compatibility).
* @link https://github.com/Maikuolan/Common/tags
*/
public const VERSION = '2.6.1';
public const VERSION = '2.6.2';

/**
* Create the matrix.
Expand Down
4 changes: 2 additions & 2 deletions src/NumberFormatter.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Number formatter (last modified: 2021.05.22).
* Number formatter (last modified: 2021.07.02).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -1026,7 +1026,7 @@ class NumberFormatter
* be needed by some implementations to ensure compatibility).
* @link https://github.com/Maikuolan/Common/tags
*/
public const VERSION = '2.6.1';
public const VERSION = '2.6.2';

/**
* @param string $Format Can use this to quickly set commonly used
Expand Down
7 changes: 4 additions & 3 deletions src/Operation.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Operation handler (last modified: 2021.05.22).
* Operation handler (last modified: 2021.07.02).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand All @@ -27,7 +27,7 @@ class Operation
* be needed by some implementations to ensure compatibility).
* @link https://github.com/Maikuolan/Common/tags
*/
public const VERSION = '2.6.1';
public const VERSION = '2.6.2';

/**
* Operators for version numbers.
Expand Down Expand Up @@ -220,12 +220,13 @@ public function splitVersionParts(string $Version = ''): array
public function dataTraverse(&$Data, $Path = [])
{
if (!is_array($Path)) {
$Path = explode('.', $Path);
$Path = preg_split('~(?<!\\\)\.~', $Path) ?: [];
}
$Segment = array_shift($Path);
if ($Segment === null || strlen($Segment) === 0) {
return is_scalar($Data) ? $Data : '';
}
$Segment = str_replace('\.', '.', $Segment);
if (is_array($Data) && isset($Data[$Segment])) {
return $this->dataTraverse($Data[$Segment], $Path);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Request.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Request handler (last modified: 2021.05.22).
* Request handler (last modified: 2021.07.02).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -52,7 +52,7 @@ class Request
* be needed by some implementations to ensure compatibility).
* @link https://github.com/Maikuolan/Common/tags
*/
public const VERSION = '2.6.1';
public const VERSION = '2.6.2';

/**
* The main request method.
Expand Down
4 changes: 2 additions & 2 deletions src/YAML.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* YAML handler (last modified: 2021.05.22).
* YAML handler (last modified: 2021.07.02).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -55,7 +55,7 @@ class YAML
* be needed by some implementations to ensure compatibility).
* @link https://github.com/Maikuolan/Common/tags
*/
public const VERSION = '2.6.1';
public const VERSION = '2.6.2';

/**
* Can optionally begin processing data as soon as the object is
Expand Down

0 comments on commit 8a9b882

Please sign in to comment.