aboutsummaryrefslogtreecommitdiff
path: root/p/ext.php
diff options
context:
space:
mode:
authorGravatar Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> 2024-06-05 22:04:06 +0200
committerGravatar GitHub <noreply@github.com> 2024-06-05 22:04:06 +0200
commitf99c8d5f54c67e0abc3f3189b4f5e3e4571e114c (patch)
treed7d74a628cd9614dd4093220139b6c073f3a5c54 /p/ext.php
parent8fc8ac3aefca73a4cd509313a2f1ad73ef7f2e1a (diff)
Modernize code to php7.4 (#6043)
* Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Modernize code to php7.4 * Consistency --------- Co-authored-by: Luc <sanchezluc+freshrss@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'p/ext.php')
-rw-r--r--p/ext.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/ext.php b/p/ext.php
index 379dfc35b..a9dee3756 100644
--- a/p/ext.php
+++ b/p/ext.php
@@ -60,7 +60,7 @@ function is_valid_path_extension(string $path, string $extensionPath, bool $isSt
// Static files to serve must be under a `ext_dir/static/` directory.
$path_relative_to_ext = substr($path, strlen($real_ext_path) + 1);
- list(, $static, $file) = sscanf($path_relative_to_ext, '%[^/]/%[^/]/%s') ?? [null, null, null];
+ [, $static, $file] = sscanf($path_relative_to_ext, '%[^/]/%[^/]/%s') ?? [null, null, null];
if (null === $file || 'static' !== $static) {
return false;
}