Skip to content

Commit

Permalink
Extend Serializer stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoHaase authored and ondrejmirtes committed May 16, 2023
1 parent c849393 commit 7332b90
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ interface DecoderInterface

/**
* @param string $format Format name
* @param array<mixed> $context
* @return bool
*/
public function supportsDecoding($format);
public function supportsDecoding($format, array $context = []);
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ interface EncoderInterface

/**
* @param string $format Format name
* @param array<mixed> $context
* @return bool
*/
public function supportsEncoding($format);
public function supportsEncoding($format, array $context = []);
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ interface DenormalizerInterface
* @param mixed $data
* @param string $type
* @param string|null $format
* @param array<mixed> $context
* @return bool
*/
public function supportsDenormalization($data, $type, $format = null);
public function supportsDenormalization($data, $type, $format = null, array $context = []);
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ interface NormalizerInterface
/**
* @param mixed $data
* @param string|null $format
* @param array<mixed> $context
*
* @return bool
*/
public function supportsNormalization($data, $format = null);
public function supportsNormalization($data, $format = null, array $context = []);
}

0 comments on commit 7332b90

Please sign in to comment.