Skip to content

Commit

Permalink
rtrim(): Passing null to parameter #1 ($string) of type string is dep…
Browse files Browse the repository at this point in the history
…recated
  • Loading branch information
escopecz committed Jun 9, 2023
1 parent 5e63c23 commit 28fbf0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/bundles/CoreBundle/Loader/EnvVars/ElFinderEnvVars.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ElFinderEnvVars implements EnvVarsInterface
{
public static function load(ParameterBag $config, ParameterBag $defaultConfig, ParameterBag $envVars): void
{
$root = rtrim($defaultConfig->get('local_root'), '/') ?: '%kernel.project_dir%';
$root = rtrim((string) $defaultConfig->get('local_root'), '/') ?: '%kernel.project_dir%';

$relativeImageFolderPath = trim($config->get('image_path'), '/');
$absoluteImageFolderPath = $root.'/'.$relativeImageFolderPath;
Expand Down

0 comments on commit 28fbf0a

Please sign in to comment.