src/WordPress/NumArgsAwareTrait.php
protected function _setNumArgs($numArgs)
    {
        $numArgs = $this->_normalizeInt($numArgs);

        if ($numArgs < 0) {
            throw $this->_createOutOfRangeException(
                $this->__('Number of arguments cannot be smaller than zero'), null, null, $numArgs
            );
        }

        $this->numArgs = $numArgs;
    }
protected function _setNumArgs($numArgs)
    {
        $numArgs = $this->_normalizeInt($numArgs);

        if ($numArgs < 0) {
            throw $this->_createOutOfRangeException(
                $this->__('Number of arguments cannot be smaller than zero'), null, null, $numArgs
            );
        }

        $this->numArgs = $numArgs;
    }
Sets the argument count value to pass to the native WordPress action and filter hooking functions.

@since [*next-version*]

@param int $numArgs A positive argument count to pass to the native WordPress action and filter hooking
functions.