Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
uses: "ramsey/composer-install@v3"
with:
dependency-versions: ${{ matrix.dependencies }}
ignore-cache: true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- name: PHPUnit
run: vendor/bin/phpunit --fail-on-risky --coverage-clover=coverage.clover
- uses: codecov/codecov-action@v4
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [Unreleased]

### Removed

- Dependency to `innmind/json`

## 6.6.0 - 2025-11-01

### Added
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
},
"require": {
"php": "~8.2",
"innmind/json": "^1.1",
"symfony/var-dumper": "~6.0|~7.0",
"phpunit/phpunit": "~10.0|~11.0|~12.0",
"phpunit/php-timer": "~6.0|~7.0|~8.0",
Expand Down
8 changes: 6 additions & 2 deletions src/Set/UnsafeStrings.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Set,
Random,
};
use Innmind\Json\Json;

/**
* @internal
Expand All @@ -34,7 +33,12 @@ public function __invoke(
}

/** @var list<string> */
$values = Json::decode($json);
$values = \json_decode(
$json,
true,
512,
\JSON_THROW_ON_ERROR,
);
$values = \array_values(\array_filter(
$values,
$predicate,
Expand Down