aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-08 15:32:09 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-08 15:32:09 +0100
commit409f2ade201154b9d28defec5112eada58cdeeaa (patch)
treea5271e673ff6451e8ca0988c20a453f4b64e808a
parent5188c4fa0b9ea0dfa3763aa34c1c98230c09daef (diff)
downloadView-409f2ade201154b9d28defec5112eada58cdeeaa.zip
View-409f2ade201154b9d28defec5112eada58cdeeaa.tar.gz
View-409f2ade201154b9d28defec5112eada58cdeeaa.tar.bz2
chore(php) Update to PHP 7.
-rw-r--r--Source/Viewable.php5
-rw-r--r--Test/Unit/Viewable.php10
2 files changed, 7 insertions, 8 deletions
diff --git a/Source/Viewable.php b/Source/Viewable.php
index ec42dc3..a166f34 100644
--- a/Source/Viewable.php
+++ b/Source/Viewable.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
/**
* Hoa
*
@@ -40,9 +42,6 @@ namespace Hoa\View;
* Interface \Hoa\View\Viewable.
*
* Describe what a view could be.
- *
- * @copyright Copyright © 2007-2017 Hoa community
- * @license New BSD License
*/
interface Viewable
{
diff --git a/Test/Unit/Viewable.php b/Test/Unit/Viewable.php
index fa6d9ad..cdedcf4 100644
--- a/Test/Unit/Viewable.php
+++ b/Test/Unit/Viewable.php
@@ -1,5 +1,7 @@
<?php
+declare(strict_types=1);
+
/**
* Hoa
*
@@ -37,22 +39,20 @@
namespace Hoa\View\Test\Unit;
use Hoa\Test;
+use Hoa\View as LUT;
/**
* Class \Hoa\View\Test\Unit\Viewable.
*
* Test suite of the interface.
- *
- * @copyright Copyright © 2007-2017 Hoa community
- * @license New BSD License
*/
class Viewable extends Test\Unit\Suite
{
- public function case_interface()
+ public function case_interface(): void
{
$this
->when($result = new \Mock\Hoa\View\Viewable())
->object($result)
- ->isInstanceOf('Hoa\View\Viewable');
+ ->isInstanceOf(LUT\Viewable::class);
}
}