-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Add box-double table style #26693
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
Conversation
UPGRADE-4.1.md
Outdated
Serializer | ||
---------- | ||
|
||
* Decoding XML with `XmlEncoder` now ignores comment node types by default. |
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.
Why are you removing these ?
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.
Bad merge. Fixed.
* </code> | ||
* | ||
* @param string $outside Outside border char (see #1 of example) | ||
* @param string|null $inside Outside border char (see #2 of example), equals $outside if null |
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.
should be Inside
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.
Fixed.
*/ | ||
public function setVerticalBorderChar($verticalBorderChar) | ||
{ | ||
$this->verticalBorderChar = $verticalBorderChar; | ||
@trigger_error(sprintf('Method %s() is deprecated since Symfony 4.1. Use setVerticalBorderChars() instead.', __METHOD__), E_USER_DEPRECATED); |
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.
Deprecating a non-internal method in favor of an internal one looks weird to me.
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.
This one isn't internal. Are you talking about getBorderChars()
maybe?
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.
since Symfony 4.1, use set...
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.
Fixed.
a8d1195
to
8c2a59e
Compare
*/ | ||
public function setVerticalBorderChar($verticalBorderChar) | ||
{ | ||
$this->verticalBorderChar = $verticalBorderChar; | ||
@trigger_error(sprintf('Method %s() is deprecated since Symfony 4.1. Use setVerticalBorderChars() instead.', __METHOD__), E_USER_DEPRECATED); |
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.
since Symfony 4.1, use set...
*/ | ||
public function getVerticalBorderChar() | ||
{ | ||
return $this->verticalBorderChar; | ||
@trigger_error(sprintf('Method %s() is deprecated since Symfony 4.1. Use getBorderChars() instead.', __METHOD__), E_USER_DEPRECATED); |
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.
same here, use a comma instead of a dot.
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.
Fixed.
8c2a59e
to
463f986
Compare
Thank you @maidmaid. |
This PR was merged into the 4.1-dev branch. Discussion ---------- [Console] Add box-double table style | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25456 (review) | License | MIT | Doc PR | / In #25456 (review) @javiereguiluz suggested to have a complete configuration for style table. It was a nice idea, but not yet implemented. The box-drawing characters allow to combine different styles (like double/single lines). This PR give the possibility to use them. The previous #25456 introduced the box-drawing characters; this PR exploits all their strength.  See https://gist.github.com/maidmaid/3eb55afc4f2857cae89d7ac43d7943ae for some examples. Commits ------- 463f986 Add box-double table style
In #25456 (review) @javiereguiluz suggested to have a complete configuration for style table. It was a nice idea, but not yet implemented. The box-drawing characters allow to combine different styles (like double/single lines). This PR give the possibility to use them.
The previous #25456 introduced the box-drawing characters; this PR exploits all their strength.
See https://gist.github.com/maidmaid/3eb55afc4f2857cae89d7ac43d7943ae for some examples.