Closed XEuRoMAN closed 8 years ago
I'm making plugin of my custom field and noticed that there is some unreachable code in CMS core.
https://github.com/impresspages/ImpressPages/blob/ea121628e03f2a3b0d5764ac1c74427a65422197/Ip/Internal/Grid/Model/Field/RepositoryFile.php#L77
every code is in isset closure but inside this closure someone expecting that this value won't be set. https://github.com/impresspages/ImpressPages/blob/ea121628e03f2a3b0d5764ac1c74427a65422197/Ip/Internal/Grid/Model/Field/RepositoryFile.php#L79 https://github.com/impresspages/ImpressPages/blob/ea121628e03f2a3b0d5764ac1c74427a65422197/Ip/Internal/Grid/Model/Field/RepositoryFile.php#L85
isset
set
Cool?
Cool.
I'm making plugin of my custom field and noticed that there is some unreachable code in CMS core.
https://github.com/impresspages/ImpressPages/blob/ea121628e03f2a3b0d5764ac1c74427a65422197/Ip/Internal/Grid/Model/Field/RepositoryFile.php#L77
every code is in
isset
closure but inside this closure someone expecting that this value won't beset
. https://github.com/impresspages/ImpressPages/blob/ea121628e03f2a3b0d5764ac1c74427a65422197/Ip/Internal/Grid/Model/Field/RepositoryFile.php#L79 https://github.com/impresspages/ImpressPages/blob/ea121628e03f2a3b0d5764ac1c74427a65422197/Ip/Internal/Grid/Model/Field/RepositoryFile.php#L85