Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
chore(php-cs-fixer): enable declare_strict_types rule (#8)
Browse files Browse the repository at this point in the history
chore(php-cs-fixer): enable declare_strict_types rule
  • Loading branch information
Kocal committed Jul 10, 2019
2 parents b1c3d4c + aff8baa commit 083e823
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .php_cs.dist
Expand Up @@ -22,6 +22,7 @@ return PhpCsFixer\Config::create()
],
'heredoc_to_nowdoc' => false,
'phpdoc_summary' => false,
'declare_strict_types' => true,
])
->setFinder($finder)
;
2 changes: 2 additions & 0 deletions src/Acme.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace App;

class Acme
Expand Down
2 changes: 2 additions & 0 deletions src/Controller/Api/SecurityController.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace App\Controller\Api;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
Expand Down
2 changes: 2 additions & 0 deletions src/Controller/HomeController.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace App\Controller;

use App\Repository\UserRepository;
Expand Down
2 changes: 2 additions & 0 deletions src/Controller/SecurityController.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace App\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
Expand Down
2 changes: 2 additions & 0 deletions src/Entity/User.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
Expand Down
2 changes: 2 additions & 0 deletions src/Kernel.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace App;

use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
Expand Down
2 changes: 2 additions & 0 deletions src/Repository/UserRepository.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace App\Repository;

use App\Entity\User;
Expand Down
2 changes: 2 additions & 0 deletions src/Security/ApiKeyAuthenticator.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace App\Security;

use App\Repository\UserRepository;
Expand Down
2 changes: 2 additions & 0 deletions src/Security/FormAuthenticator.php
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace App\Security;

use App\Entity\User;
Expand Down

0 comments on commit 083e823

Please sign in to comment.