Skip to content
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

Merged
merged 25 commits into from
Jan 28, 2021
Merged

Conversation

asgrim
Copy link
Member

@asgrim asgrim commented Jan 27, 2021

No description provided.

@asgrim asgrim added the enhancement New feature or request label Jan 27, 2021
@asgrim asgrim self-assigned this Jan 27, 2021
@asgrim asgrim changed the title Initial structure of docbook tool process [WIP - Do not merge] Initial structure of docbook tool process Jan 27, 2021
@asgrim asgrim force-pushed the basic-feature-work branch from af71f32 to c5284b2 Compare January 28, 2021 12:47
@asgrim asgrim changed the title [WIP - Do not merge] Initial structure of docbook tool process Initial structure of docbook tool process Jan 28, 2021
@asgrim asgrim removed their assignment Jan 28, 2021
@asgrim asgrim added this to the 1.0.0 milestone Jan 28, 2021
@asgrim asgrim requested a review from Ocramius January 28, 2021 13:15
@asgrim asgrim requested a review from Ocramius January 28, 2021 17:47
Copy link
Member

@Ocramius Ocramius left a 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'],
Copy link
Member

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)?

Copy link
Member Author

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 😅

Copy link
Member Author

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
------------------------------

@Ocramius Ocramius merged commit ae51375 into 1.0.x Jan 28, 2021
@Ocramius Ocramius deleted the basic-feature-work branch January 28, 2021 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants