Skip to content

Commit

Permalink
The cake is a lie.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zazalt committed Feb 24, 2017
1 parent 34c6749 commit 4438144
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ EntityMaker

Requirements
---------------
* php >= 5.4.0
* php >= 7.1.0

Packagist Dependencies
---------------
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": ">=5.4.0",
"php": ">=7.1.0",
"zazalt/omen": "dev-master",
"zazalt/databaser": "dev-master",
"zazalt/strink": "dev-master",
Expand Down
2 changes: 1 addition & 1 deletion src/EntityMaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function run()
/**
* Will create the entity only once, if not exits
*/
private function createEntity(array $entity)
private function createEntity(array $entity): void
{
$entityNameCamelCase = \Zazalt\Strink\Strink::turn(key($entity))->snakeCaseToCamelCase(true);
$fileTemplateContent = file_get_contents(dirname(__FILE__).'/Templates/Entity.php');
Expand Down
4 changes: 3 additions & 1 deletion tests/EntityMakerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

namespace Zazalt\EntityMaker\Tests;

use Zazalt\EntityMaker\EntityMaker;

class EntityMakerTest extends \Zazalt\EntityMaker\Tests\ZazaltTest
{
protected $that;

public function __construct()
{
parent::loader($this);
parent::loader(EntityMaker::class);
}

public function testFake()
Expand Down

0 comments on commit 4438144

Please sign in to comment.