Skip to content

Commit

Permalink
#2407 - Change from switch to if
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Oct 29, 2023
1 parent ab1ffb1 commit 1dd4c8a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Library/Backend/Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,10 @@ public function getBoolCode(Variable $variable, CompilationContext $context, $us

public function getTypeDefinition($type): array
{
switch ($type) {
case 'zend_ulong':
return ['', 'zend_ulong'];

case 'zend_string':
return ['*', 'zend_string'];
if ($type === 'zend_ulong') {
return ['', 'zend_ulong'];
} elseif ($type === 'zend_string') {
return ['*', 'zend_string'];
}

$pointer = null;
Expand Down

0 comments on commit 1dd4c8a

Please sign in to comment.