Skip to content

Commit 6430d53

Browse files
minor symfony#21264 CS: apply is_null (keradus)
This PR was merged into the 2.7 branch. Discussion ---------- CS: apply is_null | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | not related | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 47feb18 CS: apply is_null
2 parents 2cff2f6 + 47feb18 commit 6430d53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Command/DebugCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function getMetadata($type, $entity)
141141
}
142142
if ($type === 'functions' || $type === 'filters') {
143143
$cb = $entity->getCallable();
144-
if (is_null($cb)) {
144+
if (null === $cb) {
145145
return;
146146
}
147147
if (is_array($cb)) {

0 commit comments

Comments
 (0)