Skip to content

Commit

Permalink
Fix PHP str_replace call with parameter #3 is null deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Berger committed Feb 23, 2024
1 parent 80a51e8 commit a877cbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function addConfiguration(ArrayNodeDefinition $builder)
->cannotBeEmpty()
->end()
->scalarNode('cache_prefix')
->defaultValue(null)
->defaultValue('')
->end()
->arrayNode('client_config')
->isRequired()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function addConfiguration(ArrayNodeDefinition $builder)
->cannotBeEmpty()
->end()
->scalarNode('cache_prefix')
->defaultValue(null)
->defaultValue('')
->end()
->scalarNode('root_url')
->isRequired()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public function testAddDefaultOptionsIfNotSetOnAddConfiguration(): void
$this->assertSame([], $config['get_options']);

$this->assertArrayHasKey('cache_prefix', $config);
$this->assertNull($config['cache_prefix']);
$this->assertSame('', $config['cache_prefix']);
}

public function testSupportAwsV3ClientConfig(): void
Expand Down

0 comments on commit a877cbb

Please sign in to comment.