Skip to content

Conversation

mavimo
Copy link
Contributor

@mavimo mavimo commented Dec 22, 2019

SSIA

@ondrejmirtes the CI fail since we are going to use and extension that is not required in the composer.json, we have three options:

  • Rewrite the code to do not use the DOM extension (using string concat to build XML)
  • Include ext-dom as dependency
  • Ignoring the error

Let me know what's your favourite solution :)

@ondrejmirtes
Copy link
Member

Thank you 😊 I think it would be best to rewrite the code in style of the checkstyle formatter 😊

@mavimo
Copy link
Contributor Author

mavimo commented Dec 23, 2019

@ondrejmirtes should be fixed, let me know if it's fine to have ext-dom in dev env.

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • mention it in the README please :)

Otherwise great! 👍

"phpstan/phpstan": "self.version"
},
"require-dev": {
"ext-dom": "*",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK this should not be added.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you need it for in dev?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ondrejmirtes It's useful to do XML validation, see https://github.com/phpstan/phpstan-src/pull/65/files#diff-ba74c4a649ddce093d63acd494b761d6R157 but we can remove this assertion if you think is not useful

@mavimo
Copy link
Contributor Author

mavimo commented Dec 23, 2019

@ondrejmirtes do you mean README.md into phpstan/phpstan repo? I don't see any reference to other formatter in README into this repo.

@mavimo mavimo requested a review from ondrejmirtes December 23, 2019 21:14
@ondrejmirtes
Copy link
Member

I haven't realized it's a separate README :) Feel free to send a PR there after this is merged :) After you fix the build this is good to merge :)

@mavimo mavimo force-pushed the feature/add-junit-error-formatter branch from 43ce4d0 to da39079 Compare December 24, 2019 07:25
@ondrejmirtes ondrejmirtes merged commit 4e9913a into phpstan:master Dec 24, 2019
@ondrejmirtes
Copy link
Member

Thank you, perfect! :) Will be released in 0.12.4 after the holidays.

@mavimo mavimo deleted the feature/add-junit-error-formatter branch December 24, 2019 13:09
@mavimo
Copy link
Contributor Author

mavimo commented Dec 24, 2019

@ondrejmirtes nice! I'll update the README ASAP (and close my repo once the formatter will be released in phpstan :) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants