Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ A simple deserialization.
## Requirements

* php: ^8.2
* chubbyphp/chubbyphp-decode-encode: ^1.1
* chubbyphp/chubbyphp-decode-encode: ^1.2
* psr/http-message: ^1.1|^2.0
* psr/log: ^2.0|^3.0.2

Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@
"ext-dom": "*",
"ext-json": "*",
"ext-mbstring": "*",
"chubbyphp/chubbyphp-decode-encode": "^1.1",
"chubbyphp/chubbyphp-decode-encode": "^1.2",
"psr/http-message": "^1.1|^2.0",
"psr/log": "^2.0|^3.0.2"
},
"require-dev": {
"chubbyphp/chubbyphp-container": "^2.2",
"chubbyphp/chubbyphp-container": "^2.3",
"chubbyphp/chubbyphp-dev-helper": "dev-master",
"chubbyphp/chubbyphp-laminas-config-factory": "^1.3",
"chubbyphp/chubbyphp-mock": "^1.8",
"chubbyphp/chubbyphp-laminas-config-factory": "^1.4",
"chubbyphp/chubbyphp-mock": "^2.0@dev",
"doctrine/collections": "^2.2.2",
"doctrine/persistence": "^4.0",
"infection/infection": "^0.29.8",
"infection/infection": "^0.29.13",
"php-coveralls/php-coveralls": "^2.7.0",
"phpstan/extension-installer": "^1.4.3",
"phpstan/phpstan": "^2.0.3",
"phpunit/phpunit": "^11.5.0",
"phpstan/phpstan": "^2.1.6",
"phpunit/phpunit": "^11.5.10",
"pimple/pimple": "^3.5",
"psr/container": "^2.0.2",
"symfony/config": "^5.4.46|^6.4.14|^7.2",
"symfony/dependency-injection": "^5.4.46|^6.4.14|^7.2"
"symfony/dependency-injection": "^5.4.48|^6.4.19|^7.2"
},
"autoload": {
"psr-4": { "Chubbyphp\\Deserialization\\": "src/" }
Expand Down
11 changes: 5 additions & 6 deletions tests/Unit/Denormalizer/CallbackFieldDenormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
use Chubbyphp\Deserialization\Denormalizer\CallbackFieldDenormalizer;
use Chubbyphp\Deserialization\Denormalizer\DenormalizerContextInterface;
use Chubbyphp\Deserialization\Denormalizer\DenormalizerInterface;
use Chubbyphp\Mock\MockByCallsTrait;
use PHPUnit\Framework\MockObject\MockObject;
use Chubbyphp\Mock\MockObjectBuilder;
use PHPUnit\Framework\TestCase;

/**
Expand All @@ -18,8 +17,6 @@
*/
final class CallbackFieldDenormalizerTest extends TestCase
{
use MockByCallsTrait;

public function testDenormalizeField(): void
{
$object = new class {
Expand All @@ -38,8 +35,10 @@ public function setName(string $name): self
}
};

/** @var DenormalizerContextInterface|MockObject $context */
$context = $this->getMockByCalls(DenormalizerContextInterface::class);
$builder = new MockObjectBuilder();

/** @var DenormalizerContextInterface $context */
$context = $builder->create(DenormalizerContextInterface::class, []);

$fieldDenormalizer = new CallbackFieldDenormalizer(
static function (
Expand Down
Loading
Loading