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 invalid go generation #121

Merged
merged 4 commits into from
Apr 22, 2024
Merged

Conversation

KoNekoD
Copy link
Collaborator

@KoNekoD KoNekoD commented Apr 21, 2024

1 Enum types do not indent correctly
2 []interface{} is a logical error of mine, it should be just interface{}
3 I wrote the comment that the file is generated by convention, it does not appear in the ide that it is a generated file.

@@ -57,7 +57,7 @@ private function convertEnumToGoEnumProperties(array $properties, string $enum):
}
$this->usedConstantsStore[] = $const;

$spaces = str_repeat(' ', $maxEnumPropNameLength - strlen($prop->getName()) + 1);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fix 1 err

$type->equalsTo(PhpBaseType::array()),
$type->equalsTo(PhpBaseType::iterable()) => '[]interface{}',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fix 2 err

// THE FILE WAS AUTOGENERATED USING PHP-CONVERTER. PLEASE DO NOT EDIT IT!
// Code generated by php-converter. DO NOT EDIT.
// Code generated by php-converter. DO NOT EDIT.
// Code generated by php-converter. DO NOT EDIT.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fix 3 err

@@ -9,6 +9,8 @@ final class PermissionsEnum extends Enum
private const VIEW = 'view';

private const EDIT = 'edit';

private const CREATE_EXTRA_SUPER_FILE = 'create-extra-super-file';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

created to detect err 2

@kubk kubk merged commit b642a4b into riverwaysoft:main Apr 22, 2024
7 checks passed
@kubk
Copy link
Collaborator

kubk commented Apr 22, 2024

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