Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
dgafka committed Dec 26, 2023
1 parent 380f529 commit 8247a39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Benchmark/JsonContextNamingSerializationBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

use JMS\Serializer\Naming\IdenticalPropertyNamingStrategy;
use JMS\Serializer\SerializationContext;
use JMS\Serializer\Tests\Benchmark\Performance\JsonSerializationBench;

class JsonContextNamingSerializationBench extends JsonSerializationBench
{
protected function createContext(): SerializationContext
{
/** @phpstan-ignore-next-line */
return parent::createContext()->setPropertyNamingStrategy(new IdenticalPropertyNamingStrategy());
}
}

0 comments on commit 8247a39

Please sign in to comment.