Skip to content

Commit

Permalink
Merge pull request #586 from elifesciences/fix-assertion-class-not-found
Browse files Browse the repository at this point in the history
Replace usage of assert class that is no longer a dependency
  • Loading branch information
scottaubrey authored Dec 18, 2024
2 parents 7c29d38 + 8e2b49d commit 19fa692
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Search/Api/Response/TypesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace eLife\Search\Api\Response;

use Assert\Assertion;
use JMS\Serializer\Annotation\SerializedName;
use JMS\Serializer\Annotation\Since;
use JMS\Serializer\Annotation\Type;
use Webmozart\Assert\Assert;

final class TypesResponse
{
Expand Down Expand Up @@ -224,7 +224,7 @@ public static function fromArray(array $type_totals)

public static function fromList(array $list)
{
Assert::allIsInstanceOf($list, SearchResult::class);
Assertion::allIsInstanceOf($list, SearchResult::class);

$type_totals = array_count_values(
array_map('strtolower',
Expand Down

0 comments on commit 19fa692

Please sign in to comment.