Skip to content

Commit

Permalink
Merge pull request #41 from veewee/docs
Browse files Browse the repository at this point in the history
Fix invalid callable syntax in docs for v2
  • Loading branch information
veewee authored Oct 28, 2022
2 parents 2266479 + 6816f19 commit 0b903e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/dom.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Since not all code is in one big master class, you will find that it is not too
## Examples

```php
use DOMDocument;
use Psl\Type;
use VeeWee\XML\DOM\Configurator;
use VeeWee\XML\DOM\Document;
Expand All @@ -24,7 +25,7 @@ $doc = Document::configure(
Configurator\validator(
Validator\internal_xsd_validator()
),
new MyCustomMergeImportsConfigurator()
static fn (DOMDocument $document) => (new MyCustomMergeImportsConfigurator())($document),
);

$xpath = $doc->xpath(
Expand Down

0 comments on commit 0b903e0

Please sign in to comment.