From 8c8bb3fa546b3bce909dc7b3c76687e9b4a0b22a Mon Sep 17 00:00:00 2001 From: Yassine Selmi <161843735+yselmi-finanztip@users.noreply.github.com> Date: Fri, 25 Apr 2025 15:32:33 +0200 Subject: [PATCH 1/4] fix: Add strict_types=1 --- examples/AdvancedExamples.php | 1 + examples/ApiTestingExample.php | 1 + examples/BasicUsage.php | 1 + src/JsonValidationException.php | 1 + src/JsonValidatorAssertion.php | 1 + 5 files changed, 5 insertions(+) diff --git a/examples/AdvancedExamples.php b/examples/AdvancedExamples.php index 492b1ab..593bfc6 100644 --- a/examples/AdvancedExamples.php +++ b/examples/AdvancedExamples.php @@ -3,6 +3,7 @@ /** * Made with love. */ +declare(strict_types = 1); namespace FallegaHQ\JsonTestUtils\Examples; use FallegaHQ\JsonTestUtils\JsonAssertions; diff --git a/examples/ApiTestingExample.php b/examples/ApiTestingExample.php index b562709..6a12356 100644 --- a/examples/ApiTestingExample.php +++ b/examples/ApiTestingExample.php @@ -3,6 +3,7 @@ /** * Made with love. */ +declare(strict_types = 1); namespace FallegaHQ\JsonTestUtils\Examples; use FallegaHQ\JsonTestUtils\JsonAssertions; diff --git a/examples/BasicUsage.php b/examples/BasicUsage.php index 863c0cd..398c342 100644 --- a/examples/BasicUsage.php +++ b/examples/BasicUsage.php @@ -3,6 +3,7 @@ /** * Made with love. */ +declare(strict_types = 1); namespace FallegaHQ\JsonTestUtils\Examples; use FallegaHQ\JsonTestUtils\JsonAssertions; diff --git a/src/JsonValidationException.php b/src/JsonValidationException.php index 33f9574..827badc 100644 --- a/src/JsonValidationException.php +++ b/src/JsonValidationException.php @@ -3,6 +3,7 @@ /** * Made with love. */ +declare(strict_types = 1); namespace FallegaHQ\JsonTestUtils; use InvalidArgumentException; diff --git a/src/JsonValidatorAssertion.php b/src/JsonValidatorAssertion.php index c01132b..4faf780 100644 --- a/src/JsonValidatorAssertion.php +++ b/src/JsonValidatorAssertion.php @@ -3,6 +3,7 @@ /** * Made with love. */ +declare(strict_types = 1); namespace FallegaHQ\JsonTestUtils; use PHPUnit\Framework\Assert; From 798ca5180af9cf60d168101c2b4e67258fbfc116 Mon Sep 17 00:00:00 2001 From: Yassine Selmi <161843735+yselmi-finanztip@users.noreply.github.com> Date: Fri, 25 Apr 2025 15:41:00 +0200 Subject: [PATCH 2/4] doc: Update changelog and increase version --- CHANGELOG.md | 5 +++++ VERSION | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ac3327..af77c6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Change Log All notable changes to this project will be documented in this file. +## [0.0.1alpha6] - 25/04/2025 + +### Fixes +- Enforce strict types PHP + ## [0.0.1alpha5] - 12/04/2025 ### Additions diff --git a/VERSION b/VERSION index 6a331f7..6dfc42f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.1alpha5 +0.0.1alpha6 From 5a1ee65d1994ddf885b102f8a5d968354ea50ac6 Mon Sep 17 00:00:00 2001 From: Yassine Selmi <161843735+yselmi-finanztip@users.noreply.github.com> Date: Fri, 25 Apr 2025 15:45:36 +0200 Subject: [PATCH 3/4] fix: Add missed header comment formatting --- examples/AdvancedExamples.php | 1 + examples/ApiTestingExample.php | 1 + examples/BasicUsage.php | 1 + src/JsonValidationException.php | 1 + src/JsonValidatorAssertion.php | 1 + 5 files changed, 5 insertions(+) diff --git a/examples/AdvancedExamples.php b/examples/AdvancedExamples.php index 593bfc6..1cf9e6a 100644 --- a/examples/AdvancedExamples.php +++ b/examples/AdvancedExamples.php @@ -3,6 +3,7 @@ /** * Made with love. */ + declare(strict_types = 1); namespace FallegaHQ\JsonTestUtils\Examples; diff --git a/examples/ApiTestingExample.php b/examples/ApiTestingExample.php index 6a12356..67e7f67 100644 --- a/examples/ApiTestingExample.php +++ b/examples/ApiTestingExample.php @@ -3,6 +3,7 @@ /** * Made with love. */ + declare(strict_types = 1); namespace FallegaHQ\JsonTestUtils\Examples; diff --git a/examples/BasicUsage.php b/examples/BasicUsage.php index 398c342..5b3ec75 100644 --- a/examples/BasicUsage.php +++ b/examples/BasicUsage.php @@ -3,6 +3,7 @@ /** * Made with love. */ + declare(strict_types = 1); namespace FallegaHQ\JsonTestUtils\Examples; diff --git a/src/JsonValidationException.php b/src/JsonValidationException.php index 827badc..6c53dbc 100644 --- a/src/JsonValidationException.php +++ b/src/JsonValidationException.php @@ -3,6 +3,7 @@ /** * Made with love. */ + declare(strict_types = 1); namespace FallegaHQ\JsonTestUtils; diff --git a/src/JsonValidatorAssertion.php b/src/JsonValidatorAssertion.php index 4faf780..84fd687 100644 --- a/src/JsonValidatorAssertion.php +++ b/src/JsonValidatorAssertion.php @@ -3,6 +3,7 @@ /** * Made with love. */ + declare(strict_types = 1); namespace FallegaHQ\JsonTestUtils; From 5d3b178a381d58f4c98dad216f0d8f08bbe9ad0d Mon Sep 17 00:00:00 2001 From: Yassine Selmi <161843735+yselmi-finanztip@users.noreply.github.com> Date: Fri, 25 Apr 2025 15:50:03 +0200 Subject: [PATCH 4/4] doc: Add new contributer --- CONTRIBUTORS.md | 1 + README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 03f8772..c641ab5 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -12,6 +12,7 @@ This is the list of individuals who have contributed to the project. If you've c +- [Yassine Selmi](https://github.com/selmiyassine) - [Your name could be here!] ## How to Contribute diff --git a/README.md b/README.md index 3ff8222..663c11c 100644 --- a/README.md +++ b/README.md @@ -348,6 +348,7 @@ The MIT License (MIT). Please see [License File](LICENSE) for more information. ## Credits - [Fallega HQ](https://github.com/fallegahq) +- [Yassine Selmi](https://github.com/selmiyassine) - [All Contributors](CONTRIBUTORS.md) ## Made with 💕