-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
@@ -57,7 +57,7 @@ private function convertEnumToGoEnumProperties(array $properties, string $enum): | |||
} | |||
$this->usedConstantsStore[] = $const; | |||
|
|||
$spaces = str_repeat(' ', $maxEnumPropNameLength - strlen($prop->getName()) + 1); |
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.
fix 1 err
$type->equalsTo(PhpBaseType::array()), | ||
$type->equalsTo(PhpBaseType::iterable()) => '[]interface{}', |
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.
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. |
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.
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'; |
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.
created to detect err 2
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.