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

fix: trailing open block comment #1

Merged
merged 9 commits into from
Feb 13, 2019
Merged

Conversation

ondrejhlavacek
Copy link
Member

@ondrejhlavacek ondrejhlavacek commented Feb 12, 2019

Following query fails with Notice: Uninitialized string offset: 1

SELECT 1 */

@ondrejhlavacek ondrejhlavacek self-assigned this Feb 12, 2019
Copy link
Member

@odinuv odinuv left a comment

Choose a reason for hiding this comment

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

seems legit

@@ -3,7 +3,5 @@ php:
- 5.6
- 5.5
- 5.4
- 5.3
Copy link
Member

Choose a reason for hiding this comment

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

tak to muzes rovnou vyhodit aji tu 5.4 a 5.5 ne?

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 bohužel 7.0+ nešlape a to teď vůbec nechci řešit

Copy link
Member

Choose a reason for hiding this comment

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

no to bych taky neresil

@@ -214,7 +214,7 @@ protected static function getNextToken($string, $previous = null)
}

// Comment
if ($string[0] === '#' || (isset($string[1])&&($string[0]==='-'&&$string[1]==='-') || ($string[0]==='/'&&$string[1]==='*'))) {
if ($string[0] === '#' || (isset($string[1])&&($string[0]==='-'&&$string[1]==='-') || ($string[0]==='/'&&isset($string[1])&&$string[1]==='*'))) {
Copy link
Member

Choose a reason for hiding this comment

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

whitespace?

Copy link
Member Author

Choose a reason for hiding this comment

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

chtěl jsem držet aktuální coding style. kdybychom tu knihovnu adoptovali, tak bych to doladil, ale do tý doby se snažím zdržet coding style změn.

Copy link
Member

Choose a reason for hiding this comment

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

no tak mas tam $string[0] === '#' a hned vedle $string[0]==='-' tak nevim co to je za coding style :) krome random

Copy link
Member Author

Choose a reason for hiding this comment

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

jj, ale to jsem neměnil, přidával jsem jen isset($string[1])&& do poslední části podmínky

@ondrejhlavacek ondrejhlavacek merged commit c33f7c1 into master Feb 13, 2019
@ondrejhlavacek ondrejhlavacek deleted the najlos-trailing-comment branch February 13, 2019 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants