dav icon indicating copy to clipboard operation
dav copied to clipboard

Error PHP "continue" targeting switch is equivalent to "break"

Open eehmke opened this issue 6 years ago • 3 comments

This error pops up for two files in the nextcloud log:

3rdparty/sabre/vobject/lib/Component/VCard.php#514 3rdparty/sabre/dav/lib/CalDAV/ICSExportPlugin.php#321

replacing the continue statement by "continue 2" solves this, but maybe it shoule be a break?

eehmke avatar Feb 07 '19 13:02 eehmke

Which php version are you running?

DeepDiver1975 avatar Feb 07 '19 15:02 DeepDiver1975

IIRC this is a new error/warning with php 7.3

staabm avatar Feb 07 '19 16:02 staabm

I sent the pull request for php 7.3 fix that resolves this issue in sabre/dav:3.2 branch.

Until it's merged I aliased the repository in my composer.json:

    "require": {
        "sabre/dav": "^3.2"
    },
    "repositories": [  
        {  
            "type": "vcs",  
            "url": "https://github.com/koerbler/dav"  
        }  
    ]  

matejsvajger avatar Mar 20 '19 23:03 matejsvajger