for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpAbac\Comparison;
class BooleanComparison extends AbstractComparison
{
public function boolAnd(bool $expected, bool $value): bool
return $expected && $value;
}
public function boolOr($expected, $value): bool
return $expected || $value;
public function isNull($expected, $value): bool
$expected
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return $value === null;
public function isNotNull($expected, $value): bool
return $value !== null;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.