-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial structure of docbook tool process #1
Conversation
af71f32
to
c5284b2
Compare
…in PlantUML png generation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
|
||
(new WriteAllTheOutputs($outputWriters))( | ||
array_map( | ||
[new AggregatePageFormatter($pageFormatters), '__invoke'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird - did it not work with just new AggregatePageFormatter()
(considering it's already callable
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea, I didn't actually check 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting:
ERROR: MixedArgumentTypeCoercion - bin/docbook-tool.php:46:9 - Argument 1 of Roave\DocbookTool\WriteAllTheOutputs::__invoke expects array<array-key, Roave\DocbookTool\DocbookPage>, parent type array<array-key, mixed> provided (see https://psalm.dev/194)
array_map(
new AggregatePageFormatter($pageFormatters),
(new RecursivelyLoadPagesFromPath())($contentPath)
)
------------------------------
1 errors found
------------------------------
No description provided.