This library makes heavy use of return-type declarations, which are a PHP 7 only feature. Read more about them here:
Example #1
0
 public function testHash()
 {
     $stringData = \random_bytes(32);
     $hash = \Sodium\crypto_generichash($stringData);
     $node = new Node($stringData);
     $this->assertSame($stringData, $node->getData());
     $this->assertSame($hash, $node->getHash(true));
 }