aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-07 15:35:07 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-07 15:35:07 +0100
commitde6ca74796a352a288b3515f122569593c7a6678 (patch)
tree005b43057a40536d6a52da22d940258e26dc7822
parentf7b6301e3840298fab053b42f556f1f7e91ac0b5 (diff)
downloadProtocol-de6ca74796a352a288b3515f122569593c7a6678.zip
Protocol-de6ca74796a352a288b3515f122569593c7a6678.tar.gz
Protocol-de6ca74796a352a288b3515f122569593c7a6678.tar.bz2
chore(php) Fix a type issue.
-rw-r--r--Source/Node/Node.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Node/Node.php b/Source/Node/Node.php
index 4be0d0f..896406c 100644
--- a/Source/Node/Node.php
+++ b/Source/Node/Node.php
@@ -209,6 +209,10 @@ class Node implements \ArrayAccess, \IteratorAggregate
*/
protected function _resolveChoice(?string $reach, ?array &$accumulator)
{
+ if (null === $reach) {
+ $reach = '';
+ }
+
if (empty($accumulator)) {
$accumulator = explode(RS, $reach);