From f68a101d9c21ea22df35f4474d8e13ba7ef53e9f Mon Sep 17 00:00:00 2001 From: otsch Date: Wed, 7 Jan 2026 00:22:43 +0100 Subject: [PATCH] Update dev dependencies And also run CI also on PHP 8.5. --- .github/workflows/ci.yml | 2 +- .php-cs-fixer.php | 1 + LICENSE | 2 +- composer.json | 4 ++-- src/Json.php | 4 +--- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7a02ab..26132ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4'] + php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] steps: - name: Checkout code diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index fd330aa..1c82cb2 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -17,6 +17,7 @@ 'strict_param' => true, 'array_syntax' => ['syntax' => 'short'], 'no_unused_imports' => true, + 'operator_linebreak' => ['only_booleans' => true, 'position' => 'end'], ]) ->setRiskyAllowed(true) ->setUsingCache(true); diff --git a/LICENSE b/LICENSE index 81fc620..8a745ea 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2024 Christian Olear +Copyright (c) 2026 Christian Olear Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/composer.json b/composer.json index 341c460..fe262ff 100644 --- a/composer.json +++ b/composer.json @@ -26,8 +26,8 @@ "php": "^8.0" }, "require-dev": { - "pestphp/pest": "^1.22|^2.0|^3.0", - "phpstan/phpstan": "^1.8", + "pestphp/pest": "^1.22|^2.0|^3.0|^4.0", + "phpstan/phpstan": "^1.8|^2.0", "friendsofphp/php-cs-fixer": "^3.57" }, "scripts": { diff --git a/src/Json.php b/src/Json.php index 7e8a156..6edfbfc 100644 --- a/src/Json.php +++ b/src/Json.php @@ -44,12 +44,10 @@ function ($match) { $key = $match[1]; $value = $match[2]; - } elseif (count($match) === 5) { + } else { $key = $match[3]; $value = $match[4]; - } else { - return $match[0]; } if (!str_starts_with($key, '"')) {