src/Policy.php
private function cannotCheck($type, $name, $args)
    {
        if (isset($args[0]) && (is_object($args[0]) && get_class($args[0]) === 'Closure')) {
            $type = 'closure';
            $args[1] = $args[0];
        } elseif (is_string($args[0]) && strpos($args[0], '::') !== false) {
            $type = 'method';
        }

        $this->check('not-equals', $type, $name, $args);
    }
private function cannotCheck($type, $name, $args)
    {
        if (isset($args[0]) && (is_object($args[0]) && get_class($args[0]) === 'Closure')) {
            $type = 'closure';
            $args[1] = $args[0];
        } elseif (is_string($args[0]) && strpos($args[0], '::') !== false) {
            $type = 'method';
        }

        $this->check('not-equals', $type, $name, $args);
    }
private function cannotCheck ( $ type , $ name , $ args ) { if ( isset ( $ args [ 0 ] ) && ( is_object ( $ args [ 0 ] ) && get_class ( $ args [ 0 ] ) === 'Closure' ) ) { $ type = 'closure' ; $ args [ 1 ] = $ args [ 0 ] ; } elseif ( is_string ( $ args [ 0 ] ) && strpos ( $ args [ 0 ] , '::' ) !== false ) { $ type = 'method' ; } $ this -> check ( 'not-equals' , $ type , $ name , $ args ) ; }
Add a "cannot" check to the set

@param string $type Check type
@param string $name Name for the check
@param array $args Additional arguments
Add a cannot check to the set