Jigsaw: Nested array collection fatals

Created on 26 Dec 2020  路  1Comment  路  Source: tighten/jigsaw

Simple config - before and after:

<?php

return [
    'production' => false,
    'baseUrl' => '',
    'title' => 'Jigsaw',
    'description' => 'Website description.',
    'collections' => [
        'files' => [
            'items' => [

            ]
        ],
    ],
];

^ works fine, now:

<?php

return [
    'production' => false,
    'baseUrl' => '',
    'title' => 'Jigsaw',
    'description' => 'Website description.',
    'collections' => [
        'files' => [
            'items' => [
                'folder' => 'test'
            ]
        ],
    ],
];

does that: PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + int in xxx/vendor/tightenco/jigsaw/src/Collection/CollectionRemoteItem.php:30

Nothing changed but the config.

Running php 8.0.0 with node v14.15.0 and npm v6.14.10

    "devDependencies": {
        "cross-env": "^3.2.3",
        "laravel-mix": "^5.0.5",
        "laravel-mix-jigsaw": "^1.1.0",
        "postcss-import": "^12.0.0",
        "tailwindcss": "^1.9.6",
        "vue-template-compiler": "^2.6.12"
    }
{
    "require": {
        "tightenco/jigsaw": "^1.3"
    }
}

Most helpful comment

Thanks for letting us know, should be fixed in https://github.com/tighten/jigsaw/pull/527.

>All comments

Thanks for letting us know, should be fixed in https://github.com/tighten/jigsaw/pull/527.

Was this page helpful?
0 / 5 - 0 ratings