Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/Argument.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ class Argument
* @const int INVALID_ARGUMENT Error template
*/
const INVALID_ARGUMENT = 'Argument %d in %s() was expecting %s, however %s was given.';

/**
* @var bool $stop whether to turn on/off testing
*/
protected static $stop = true;

/**
* One of the hard thing about instantiating classes is
* that design patterns can impose different ways of
Expand All @@ -51,9 +51,9 @@ class Argument
public static function i()
{
$class = __CLASS__;
return new $class($message, $code);
return new $class();
}

/**
* Tests arguments for valid data types
*
Expand Down Expand Up @@ -179,7 +179,7 @@ public function virtual($method, array $args, $index, $types)
->setTraceOffset($offset)
->trigger();
}

/**
* Validates a credit card argument.
*
Expand Down Expand Up @@ -367,7 +367,7 @@ protected function isValid($type, $data)

return true;
}

/**
* Returns the data type of the argument
*
Expand Down