From 76dffdc911f1777cac51c58679aac754bed75a05 Mon Sep 17 00:00:00 2001 From: FallegaHQ Date: Fri, 11 Apr 2025 23:57:56 +0100 Subject: [PATCH 1/2] fix: fixed workflows --- .github/{workflows => workflows}/check.yml | 0 .github/workflows/first.yml | 14 -------------- .github/{workflows => workflows}/release.yml | 0 VERSION | 2 +- composer.json | 2 +- 5 files changed, 2 insertions(+), 16 deletions(-) rename .github/{workflows => workflows}/check.yml (100%) delete mode 100644 .github/workflows/first.yml rename .github/{workflows => workflows}/release.yml (100%) diff --git a/.github/workflows /check.yml b/.github/workflows/check.yml similarity index 100% rename from .github/workflows /check.yml rename to .github/workflows/check.yml diff --git a/.github/workflows/first.yml b/.github/workflows/first.yml deleted file mode 100644 index 198cecf..0000000 --- a/.github/workflows/first.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Release - -on: - push: - branches: [ main ] - - -jobs: - verify_and_tag: - runs-on: ubuntu-latest - steps: - - name: First interaction - uses: actions/first-interaction@v1.3.0 - diff --git a/.github/workflows /release.yml b/.github/workflows/release.yml similarity index 100% rename from .github/workflows /release.yml rename to .github/workflows/release.yml diff --git a/VERSION b/VERSION index 8acdd82..bc3b3c9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.1 +0.0.1alpha1 diff --git a/composer.json b/composer.json index 5fc8096..a797ee2 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "fallegahq/json-test-utils", "description": "JSON testing utilities for PHPUnit 11+", "type": "library", - "version": "0.0.2", + "version": "0.0.1alpha1", "require": { "php": "^8.2", "phpunit/phpunit": "^11" From 1d991787dcef26d36f4ad8f116962483c2f9a3ca Mon Sep 17 00:00:00 2001 From: FallegaHQ Date: Sat, 12 Apr 2025 00:01:29 +0100 Subject: [PATCH 2/2] fix: remove version from composer.json --- composer.json | 1 - composer.lock | 2 +- src/JsonValidationException.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index a797ee2..c4f20ec 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,6 @@ "name": "fallegahq/json-test-utils", "description": "JSON testing utilities for PHPUnit 11+", "type": "library", - "version": "0.0.1alpha1", "require": { "php": "^8.2", "phpunit/phpunit": "^11" diff --git a/composer.lock b/composer.lock index 80c11ee..9d6fe89 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9be90141285e7b55e77c2e832c925658", + "content-hash": "ce0f8c9bfc2ffd838ae20180a3c1e4ba", "packages": [ { "name": "myclabs/deep-copy", diff --git a/src/JsonValidationException.php b/src/JsonValidationException.php index a399a8f..33f9574 100644 --- a/src/JsonValidationException.php +++ b/src/JsonValidationException.php @@ -11,7 +11,7 @@ class JsonValidationException extends InvalidArgumentException { protected array $errors = []; - public function __construct(string $message = '', array $errors = [], int $code = 0, Throwable $previous = null) { + public function __construct(string $message = '', array $errors = [], int $code = 0, ?Throwable $previous = null) { $this->errors = $errors; parent::__construct($message, $code, $previous); }