Skip to content

Commit

Permalink
Always declare strict_types
Browse files Browse the repository at this point in the history
  • Loading branch information
odolbeau committed Dec 4, 2023
1 parent 1d248a4 commit 02f93fa
Show file tree
Hide file tree
Showing 24 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'declare_strict_types' => true,
])
->setFinder($finder)
;
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/DependencyInjection/MisdPhoneNumberExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Doctrine/DBAL/Types/PhoneNumberType.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Form/DataTransformer/PhoneNumberToArrayTransformer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Form/DataTransformer/PhoneNumberToStringTransformer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Form/Type/PhoneNumberType.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/MisdPhoneNumberBundle.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Serializer/Normalizer/PhoneNumberNormalizer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Templating/Helper/PhoneNumberHelper.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Twig/Extension/PhoneNumberHelperExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Validator/Constraints/PhoneNumber.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Validator/Constraints/PhoneNumberValidator.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Misd\PhoneNumberBundle\Tests\DependencyInjection\Compiler;

use Misd\PhoneNumberBundle\DependencyInjection\Compiler\FormTwigTemplateCompilerPass;
Expand Down
2 changes: 2 additions & 0 deletions tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/DependencyInjection/MisdPhoneNumberExtensionTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Doctrine/DBAL/Types/PhoneNumberTypeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Form/Type/PhoneNumberTypeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Serializer/Normalizer/PhoneNumberNormalizerTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Templating/Helper/PhoneNumberHelperTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Validator/Constraints/PhoneNumberTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down
2 changes: 2 additions & 0 deletions tests/Validator/Constraints/PhoneNumberValidatorTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Symfony2 PhoneNumberBundle.
*
Expand Down

0 comments on commit 02f93fa

Please sign in to comment.