Skip to content

Commit

Permalink
Merge pull request #20 from samsonasik/apply-php74
Browse files Browse the repository at this point in the history
Apply PHP 7.4 syntax and typed property
  • Loading branch information
Ocramius authored Sep 14, 2022
2 parents ee074db + 7cffa70 commit 55b5ab7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions test/ArrayParametersTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@

use ArrayIterator;
use Mezzio\Template\Exception\InvalidArgumentException;
use MezzioTest\Template\TestAsset\ArrayParameters;
use PHPUnit\Framework\TestCase;

class ArrayParametersTraitTest extends TestCase
{
/** @var TestAsset\ArrayParameters */
private $subject;
private ArrayParameters $subject;

protected function setUp(): void
{
$this->subject = new TestAsset\ArrayParameters();
$this->subject = new ArrayParameters();
}

public function testNullParamsAreReturnedAsEmptyArray(): void
Expand Down
6 changes: 2 additions & 4 deletions test/DefaultParamsTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@

class DefaultParamsTraitTest extends TestCase
{
/** @var ArrayParameters */
private $arrayParams;
private ArrayParameters $arrayParams;

/** @var DefaultParameters */
private $defaultParams;
private DefaultParameters $defaultParams;

protected function setUp(): void
{
Expand Down
3 changes: 1 addition & 2 deletions test/TestAsset/ViewModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

class ViewModel
{
/** @var array */
private $variables;
private array $variables;

public function __construct(array $variables)
{
Expand Down

0 comments on commit 55b5ab7

Please sign in to comment.