:octocat: declare strict types

This commit is contained in:
smiley
2024-07-21 15:55:05 +02:00
parent f32696c8a7
commit 7b1d9617d3
137 changed files with 144 additions and 2 deletions
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2023 smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\Authenticator\{Authenticator, AuthenticatorOptionsTrait};
use chillerlan\Authenticator\Authenticators\AuthenticatorInterface;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpIllegalPsrClassPathInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Output\QROutputAbstract;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2022 Smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Data\QRMatrix;
+1
View File
@@ -6,6 +6,7 @@
* @author Maximilian Kresse
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Data\QRMatrix;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2017 Smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Data\QRMatrix;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2017 Smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Data\QRMatrix;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection, PhpIllegalPsrClassPathInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Common\EccLevel;
+1
View File
@@ -12,6 +12,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Common\EccLevel;
+1
View File
@@ -11,6 +11,7 @@
*
* @noinspection PhpIllegalPsrClassPathInspection, PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Output\QRGdImagePNG;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2017 Smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Data\QRMatrix;
+1
View File
@@ -17,6 +17,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Data\QRMatrix;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2023 smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
use chillerlan\QRCode\Common\EccLevel;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
use chillerlan\QRCode\Common\EccLevel;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2024 smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\Data\QRMatrix;
use chillerlan\QRCode\Output\QRInterventionImage;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2023 smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
+1
View File
@@ -7,6 +7,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Data\QRMatrix;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2022 smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2023 smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Common\EccLevel;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Data\QRMatrix;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2023 smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Data\QRMatrix;
+1
View File
@@ -9,6 +9,7 @@
* @see https://github.com/chillerlan/php-qrcode/issues/127
* @see ./shapes.svg
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Common\EccLevel;
+1
View File
@@ -11,6 +11,7 @@
*
* @noinspection PhpIllegalPsrClassPathInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Common\EccLevel;
+1
View File
@@ -11,6 +11,7 @@
*
* @noinspection PhpIllegalPsrClassPathInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
use chillerlan\QRCode\Common\EccLevel;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
use chillerlan\QRCode\Common\EccLevel;
+1
View File
@@ -11,6 +11,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QRCodeException, QROptions};
use chillerlan\QRCode\Common\EccLevel;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2017 Smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\{QRCode, QROptions};
use chillerlan\QRCode\Data\QRMatrix;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2024 smiley
* @license MIT
*/
declare(strict_types=1);
use chillerlan\QRCode\Data\QRMatrix;
use chillerlan\QRCode\{QRCode, QROptions};
+8 -2
View File
@@ -74,7 +74,6 @@
<rule ref="SlevomatCodingStandard.Strings.DisallowVariableParsing"/>
<!--<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>-->
<!--<rule ref="SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint"/>-->
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/>
<rule ref="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition"/>
@@ -87,6 +86,13 @@
<rule ref="SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable"/>
<rule ref="SlevomatCodingStandard.Variables.UselessVariable"/>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="linesCountBeforeDeclare" value="0"/>
<property name="linesCountAfterDeclare" value="1"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Functions.RequireMultiLineCall">
<properties>
@@ -147,7 +153,7 @@
<rule ref="Generic.PHP.LowerCaseKeyword"/>
<rule ref="Generic.PHP.LowerCaseType"/>
<rule ref="Generic.PHP.NoSilencedErrors"/>
<!--<rule ref="Generic.PHP.RequireStrictTypes"/>-->
<rule ref="Generic.PHP.RequireStrictTypes"/>
<rule ref="Generic.PHP.SAPIUsage"/>
<rule ref="Generic.PHP.Syntax"/>
<rule ref="Generic.Strings.UnnecessaryStringConcat"/>
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2020 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -10,6 +10,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -10,6 +10,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -9,6 +9,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2021 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2020 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2020 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Common;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2020 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2020 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2020 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2017 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2021 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Data;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Decoder;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Decoder;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Decoder;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Decoder;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2021 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Decoder;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Decoder;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Detector;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Detector;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Detector;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Detector;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Detector;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Detector;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Detector;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2021 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Detector;
+1
View File
@@ -8,6 +8,7 @@
* @copyright 2021 Smiley
* @license Apache-2.0
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Detector;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2024 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2022 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -8,6 +8,7 @@
*
* @see https://github.com/chillerlan/php-qrcode/pull/49
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2024 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2016 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2022 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2022 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -9,6 +9,7 @@
*
* @noinspection PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2023 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2024 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode\Output;
+1
View File
@@ -9,6 +9,7 @@
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
declare(strict_types=1);
namespace chillerlan\QRCode;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2024 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCode;
+1
View File
@@ -11,6 +11,7 @@
*
* @noinspection PhpUnused, PhpComposerExtensionStubsInspection
*/
declare(strict_types=1);
namespace chillerlan\QRCode;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2024 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCodeTest;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2015 Smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCodeTest\Common;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2023 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCodeTest\Common;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2022 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCodeTest\Common;
+1
View File
@@ -10,6 +10,7 @@
*
* @codingStandardsIgnoreFile Squiz.Arrays.ArrayDeclaration.NoCommaAfterLast
*/
declare(strict_types=1);
namespace chillerlan\QRCodeTest\Common;
+1
View File
@@ -7,6 +7,7 @@
* @copyright 2022 smiley
* @license MIT
*/
declare(strict_types=1);
namespace chillerlan\QRCodeTest\Common;

Some files were not shown because too many files have changed in this diff Show More