aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-07 16:54:00 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-07 16:54:00 +0100
commit491ef2e769e8357b96511d6c67594d61f4059183 (patch)
tree2ffe8892d293cd0e18a3956113529b0d60524fb5
parentfacbff1f5cedbbe85de285ae489fbfb0226c3133 (diff)
downloadVisitor-491ef2e769e8357b96511d6c67594d61f4059183.zip
Visitor-491ef2e769e8357b96511d6c67594d61f4059183.tar.gz
Visitor-491ef2e769e8357b96511d6c67594d61f4059183.tar.bz2
chore(php) Update to PHP 7.
-rw-r--r--Source/Element.php10
-rw-r--r--Source/Visit.php10
-rw-r--r--Test/Unit/Element.php10
-rw-r--r--Test/Unit/Visit.php10
4 files changed, 14 insertions, 26 deletions
diff --git a/Source/Element.php b/Source/Element.php
index 0691407..c10f6c6 100644
--- a/Source/Element.php
+++ b/Source/Element.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
/**
* Hoa
*
@@ -40,19 +42,11 @@ namespace Hoa\Visitor;
* Interface \Hoa\Visitor\Element.
*
* Interface to visit an element.
- *
- * @copyright Copyright © 2007-2017 Hoa community
- * @license New BSD License
*/
interface Element
{
/**
* Accept a visitor.
- *
- * @param \Hoa\Visitor\Visit $visitor Visitor.
- * @param mixed &$handle Handle (refence).
- * @param mixed $eldnah Handle (no reference).
- * @return mixed
*/
public function accept(Visit $visitor, &$handle = null, $eldnah = null);
}
diff --git a/Source/Visit.php b/Source/Visit.php
index 542afa8..c3946ea 100644
--- a/Source/Visit.php
+++ b/Source/Visit.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
/**
* Hoa
*
@@ -40,19 +42,11 @@ namespace Hoa\Visitor;
* Interface \Hoa\Visitor\Visit.
*
* Visitor interface.
- *
- * @copyright Copyright © 2007-2017 Hoa community
- * @license New BSD License
*/
interface Visit
{
/**
* Visit an element.
- *
- * @param \Hoa\Visitor\Element $element Element to visit.
- * @param mixed &$handle Handle (reference).
- * @param mixed $eldnah Handle (not reference).
- * @return mixed
*/
public function visit(Element $element, &$handle = null, $eldnah = null);
}
diff --git a/Test/Unit/Element.php b/Test/Unit/Element.php
index 4f2c062..aa93bc5 100644
--- a/Test/Unit/Element.php
+++ b/Test/Unit/Element.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
/**
* Hoa
*
@@ -37,22 +39,20 @@
namespace Hoa\Visitor\Test\Unit;
use Hoa\Test;
+use Hoa\Visitor as LUT;
/**
* Class \Hoa\Visitor\Test\Unit\Element.
*
* Test suite of the interface.
- *
- * @copyright Copyright © 2007-2017 Hoa community
- * @license New BSD License
*/
class Element extends Test\Unit\Suite
{
- public function case_interface()
+ public function case_interface(): void
{
$this
->when($result = new \Mock\Hoa\Visitor\Element())
->object($result)
- ->isInstanceOf('Hoa\Visitor\Element');
+ ->isInstanceOf(LUT\Element::class);
}
}
diff --git a/Test/Unit/Visit.php b/Test/Unit/Visit.php
index cd50669..4a3a0dd 100644
--- a/Test/Unit/Visit.php
+++ b/Test/Unit/Visit.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
/**
* Hoa
*
@@ -37,22 +39,20 @@
namespace Hoa\Visitor\Test\Unit;
use Hoa\Test;
+use Hoa\Visitor as LUT;
/**
* Class \Hoa\Visitor\Test\Unit\Visit.
*
* Test suite of the interface.
- *
- * @copyright Copyright © 2007-2017 Hoa community
- * @license New BSD License
*/
class Visit extends Test\Unit\Suite
{
- public function case_interface()
+ public function case_interface(): void
{
$this
->when($result = new \Mock\Hoa\Visitor\Visit())
->object($result)
- ->isInstanceOf('Hoa\Visitor\Visit');
+ ->isInstanceOf(LUT\Visit::class);
}
}