Skip to content

Conversation

Neirda24
Copy link
Contributor

@Neirda24 Neirda24 commented Aug 7, 2025

Q A
Gotenberg API version ? 8.x
Bug fix ? yes
New feature ? yes
BC break ? no
Issues Fix #169

Description

@Neirda24 Neirda24 force-pushed the feature/warning-version branch from bbd9815 to 3bfbb0d Compare August 7, 2025 15:53
Copy link
Collaborator

@StevenRenaux StevenRenaux left a comment

Choose a reason for hiding this comment

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

Great job 🤩

@Neirda24 Neirda24 linked an issue Aug 8, 2025 that may be closed by this pull request
@Neirda24 Neirda24 self-assigned this Aug 8, 2025
@Neirda24 Neirda24 added the enhancement New feature or request label Aug 8, 2025
/**
* @param '>'|'<'|'>='|'<='|'=' $operator
*/
protected function warningIf(string $operator, string|Version $version, string|\Stringable $message): void
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
protected function warningIf(string $operator, string|Version $version, string|\Stringable $message): void
protected function warnIf(string $operator, string|Version $version, string|\Stringable $message): void

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmmmm... I feel warning is closer to the underlying logic.

Copy link
Contributor

@Jean-Beru Jean-Beru Aug 11, 2025

Choose a reason for hiding this comment

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

I propose to rename this method to describe the action. It can be logWarningIf or just logIf. (but I prefer warnIf 😛 )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed

/**
* @param '>'|'<'|'>='|'<='|'=' $operator
*/
protected function warningIf(string $operator, string|Version $version, string|\Stringable $message): void
Copy link
Contributor

@Jean-Beru Jean-Beru Aug 11, 2025

Choose a reason for hiding this comment

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

I propose to rename this method to describe the action. It can be logWarningIf or just logIf. (but I prefer warnIf 😛 )

@Neirda24 Neirda24 marked this pull request as ready for review September 1, 2025 15:22
/**
* @param '>'|'<'|'>='|'<='|'=' $operator
*/
protected function logWarningIfVersionIs(string $operator, string|Version $version, string|\Stringable $message): void
Copy link
Contributor

Choose a reason for hiding this comment

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

Since most of calls are done with a < operator, what about naming it introducedIn like in AbstractBuilder ?

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.

[Builder] Warn if Gotenberg version is not supported

3 participants