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

Modernize lib #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Modernize lib #19

wants to merge 1 commit into from

Conversation

alanpoulain
Copy link

This PR modernizes the lib by requiring PHP >=7.4.

Some notable changes:

  • Add PHP-CS-Fixer to the project.
  • Modernize the Dockerfile.
  • Use PHP typehints.

@alanpoulain alanpoulain force-pushed the main branch 3 times, most recently from a2bce53 to 226ea83 Compare November 6, 2023 19:20
$previousToken['partOfSpeech2'] !== 'kakarijoshi') &&
in_array($currentToken['inflectionType'], $inflections
);
($previousToken['partOfSpeech2'] !== 'kakarijoshi' &&
Copy link
Author

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' ||
Copy link
Author

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') &&
Copy link
Author

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 😅

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.

1 participant