Skip to content

Commit 3d2dd9e

Browse files
committed
Fix CS
1 parent ccbc2da commit 3d2dd9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,7 +2227,7 @@ private function addHtmlSanitizerSection(ArrayNodeDefinition $rootNode, callable
22272227
->info('Allows only a given list of hosts to be used in links href attributes.')
22282228
->defaultValue(null)
22292229
->validate()
2230-
->ifTrue(function ($v) { return !\is_array($v) && !\is_null($v); })
2230+
->ifTrue(function ($v) { return !\is_array($v) && null !== $v; })
22312231
->thenInvalid('The "allowed_link_hosts" parameter must be an array or null')
22322232
->end()
22332233
->end()
@@ -2243,7 +2243,7 @@ private function addHtmlSanitizerSection(ArrayNodeDefinition $rootNode, callable
22432243
->info('Allows only a given list of hosts to be used in media source attributes (img, audio, video, ...).')
22442244
->defaultValue(null)
22452245
->validate()
2246-
->ifTrue(function ($v) { return !\is_array($v) && !\is_null($v); })
2246+
->ifTrue(function ($v) { return !\is_array($v) && null !== $v; })
22472247
->thenInvalid('The "allowed_media_hosts" parameter must be an array or null')
22482248
->end()
22492249
->end()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy