Skip to content

Commit

Permalink
Merge pull request #1568 from simonberger/patch-deprecation
Browse files Browse the repository at this point in the history
Fix PHP str_replace call with parameter #3 is null deprecation
  • Loading branch information
dbu authored Feb 23, 2024
2 parents 80a51e8 + a877cbb commit 23483e8
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 23483e8

Please sign in to comment.