Issues (20)

src/Validation/Validators/IsNotNull.php (1 issue)

1
<?php
2
/**
3
 * @author    Nurlan Mukhanov <[email protected]>
4
 * @copyright 2022 Nurlan Mukhanov
5
 * @license   https://en.wikipedia.org/wiki/MIT_License MIT License
6
 * @link      https://github.com/Falseclock/service-layer
7
 */
8
9
declare(strict_types=1);
10
11
namespace Falseclock\Service\Validation\Validators;
12
13
use Falseclock\Service\Validation\ValidatorImpl;
14
15
class IsNotNull extends ValidatorImpl
16
{
17
    /**
18
     * @param null $value
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $value is correct as it would always require null to be passed?
Loading history...
19
     * @return bool
20
     */
21
    public function check($value = null): bool
22
    {
23
        return !is_null($value);
24
    }
25
}
26