-
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,9 +81,9 @@ private function resolveBase(PhpBaseType $type, ?DtoType $dto): string | |
$type->equalsTo(PhpBaseType::string()) => 'string', | ||
$type->equalsTo(PhpBaseType::bool()) => 'bool', | ||
$type->equalsTo(PhpBaseType::mixed()), | ||
$type->equalsTo(PhpBaseType::object()) => 'interface{}', | ||
$type->equalsTo(PhpBaseType::object()), | ||
$type->equalsTo(PhpBaseType::array()), | ||
$type->equalsTo(PhpBaseType::iterable()) => '[]interface{}', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fix 2 err |
||
$type->equalsTo(PhpBaseType::iterable()) => 'interface{}', | ||
$type->equalsTo(PhpBaseType::null()) => 'null', | ||
$type->equalsTo(PhpBaseType::self()) => "*{$dto->getName()}", // * for prevent recursive definition | ||
default => throw new Exception('Unknown base PHP type: %s' . json_encode($type)) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,9 @@ public static function provide(?OutputFilesProcessor $outputFilesProcessor = nul | |
[ | ||
new PrependAutogeneratedNoticeFileProcessor( | ||
text: <<<TEXT | ||
// THE FILE WAS AUTOGENERATED USING PHP-CONVERTER. PLEASE DO NOT EDIT IT! | ||
// THE FILE WAS AUTOGENERATED USING PHP-CONVERTER. PLEASE DO NOT EDIT IT! | ||
// 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 commentThe reason will be displayed to describe this comment to others. Learn more. fix 3 err |
||
|
||
package gen | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. created to detect err 2 |
||
} | ||
|
||
class FullName | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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