Skip to content

Commit

Permalink
Fix Instantiator::allowExtra example (#616)
Browse files Browse the repository at this point in the history
Fixes an example which leads to `Expected parameter of type 'string', 'string[]' provided`
  • Loading branch information
norkunas committed Jun 10, 2024
1 parent c2cbcbc commit 5f0ce76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ You can customize the instantiator in several ways:
->instantiateWith(Instantiator::withoutConstructor())
// "foo" and "bar" attributes are ignored when instantiating
->instantiateWith(Instantiator::withConstructor()->allowExtra(['foo', 'bar']))
->instantiateWith(Instantiator::withConstructor()->allowExtra('foo', 'bar'))
// all extra attributes are ignored when instantiating
->instantiateWith(Instantiator::withConstructor()->allowExtra())
Expand Down

0 comments on commit 5f0ce76

Please sign in to comment.