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

Wrong array of tables implementation #24

Closed
NotIntMan opened this issue Jun 25, 2018 · 1 comment
Closed

Wrong array of tables implementation #24

NotIntMan opened this issue Jun 25, 2018 · 1 comment
Assignees
Labels

Comments

@NotIntMan
Copy link

This TOML:

[[pages.test.blocks]]
type = "paragraph"

Parses into this struct:

[
    'pages' => [
        0 => [
            'test' => [
                0 => [
                    'blocks' => [
                        0 => [
                            'type' => 'paragraph'
                        ]
                    ]
                ]
            ]
        ]
    ]
]

But it should parses into this:

[
    'pages' => [
        'test' => [
            'blocks' => [
                0 => [
                    'type' => 'paragraph'
                ]
            ]
        ]
    ]
]

Also, this TOML

[pages.test]
caption = "Awesomeness"

[[pages.test.blocks]]
type = "paragraph"

Parses into:

[
    'pages' => [
        'test' => [
            'caption' => 'Awesomeness',
            'test' => [
                0 => [
                    'blocks' => [
                        0 => [
                            'type' => 'paragraph',
                        ]

                    ]

                ]
            ]
        ]
    ]
]

But should:

[
    'pages' => [
        'test' => [
            'caption' => 'Awesomeness',
            'blocks' => [
                0 => [
                    'type' => 'paragraph',
                ]
            ]
        ]
    ]
]
@yosymfony
Copy link
Owner

This is fixed. Thank you for your report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants