aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-07 13:47:19 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-07 13:47:19 +0100
commitb8eb890820b9d430d4103b6ba6b00e91bb676064 (patch)
treed7ed0f1d4393e88406b1f80cdd02a7dba244f3e1
parent1db79b1027a0abc0f47244cca8d694ded1b22ad3 (diff)
downloadProtocol-b8eb890820b9d430d4103b6ba6b00e91bb676064.zip
Protocol-b8eb890820b9d430d4103b6ba6b00e91bb676064.tar.gz
Protocol-b8eb890820b9d430d4103b6ba6b00e91bb676064.tar.bz2
chore(php) Fix types.
-rw-r--r--Source/Node/Node.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Node/Node.php b/Source/Node/Node.php
index cd5c0a7..e265455 100644
--- a/Source/Node/Node.php
+++ b/Source/Node/Node.php
@@ -116,7 +116,7 @@ class Node implements \ArrayAccess, \IteratorAggregate
/**
* Get a specific node.
*/
- public function offsetGet($name): Protocol\Protocol
+ public function offsetGet($name): self
{
if (!isset($this[$name])) {
throw new Protocol\Exception(
@@ -207,7 +207,7 @@ class Node implements \ArrayAccess, \IteratorAggregate
/**
* Resolve choices, i.e. a reach value has a “;”.
*/
- protected function _resolveChoice(string $reach, array &$accumulator): void
+ protected function _resolveChoice(string $reach, array &$accumulator)
{
if (empty($accumulator)) {
$accumulator = explode(RS, $reach);
@@ -341,4 +341,4 @@ class Node implements \ArrayAccess, \IteratorAggregate
/**
* Flex entity.
*/
-Consistency::flexEntity('Hoa\Protocol\Node\Node');
+Consistency::flexEntity(Node::class);