-
Notifications
You must be signed in to change notification settings - Fork 28
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
Modernize lib #19
base: master
Are you sure you want to change the base?
Modernize lib #19
Conversation
a2bce53
to
226ea83
Compare
$previousToken['partOfSpeech2'] !== 'kakarijoshi') && | ||
in_array($currentToken['inflectionType'], $inflections | ||
); | ||
($previousToken['partOfSpeech2'] !== 'kakarijoshi' && |
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.
I'm not 100% sure about this change.
{ | ||
return $currentToken['inflectionType'] === 'tokushuDa' || | ||
$currentToken['inflectionType'] === 'tokushuDesu' && | ||
return ($currentToken['inflectionType'] === 'tokushuDa' || |
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.
I'm not 100% sure about this change too.
{ | ||
return $nextToken['inflectionType'] = 'tokushuDa' && | ||
return ($nextToken['inflectionType'] === 'tokushuDa' || $nextToken['inflectionType'] === 'tokushuDesu') && |
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 is a big change because the previous code was buggy. Not sure about the change since I'm not a Japanese expert though 😅
This PR modernizes the lib by requiring PHP >=7.4.
Some notable changes: