Skip to content

Commit

Permalink
Make new describe $schema parameter optional to prevent BC
Browse files Browse the repository at this point in the history
  • Loading branch information
DjordyKoert committed Oct 27, 2023
1 parent ca71a66 commit 9e0e52c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PropertyDescriber/PropertyDescriberInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ interface PropertyDescriberInterface
{
/**
* @param Type[] $types
*
* @param Schema $schema Allows to make changes inside of the schema (e.g. adding required fields)
*/
public function describe(array $types, Schema $property, array $groups = null, ?Schema $schema = null);
public function describe(array $types, Schema $property, array $groups = null /*, ?Schema $schema = null */);

/**
* @param Type[] $types
Expand Down

0 comments on commit 9e0e52c

Please sign in to comment.