Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Completed Assertion list, fixed docblocks

  • Loading branch information...
commit 86e97668c2136fad8b79b94cba1007ef1b0c9d0a 1 parent 86cd57f
Raphael Stolt raphaelstolt authored
Showing with 7 additions and 4 deletions.
  1. +2 −0  README.md
  2. +5 −4 lib/Assert/Assertion.php
2  README.md
View
@@ -66,6 +66,7 @@ Real time usage with [Azure Blob Storage](https://github.com/beberlei/azure-blob
Assertion::boolean($value);
Assertion::notEmpty($value);
Assertion::notNull($value);
+ Assertion::string($value);
Assertion::regex($value, $regex);
Assertion::length($value, $length);
Assertion::minLength($value, $length);
@@ -87,6 +88,7 @@ Real time usage with [Azure Blob Storage](https://github.com/beberlei/azure-blob
Assertion::readable($value);
Assertion::writeable($value);
Assertion::email($value);
+ Assertion::url($value);
Assertion::alnum($value);
Assertion::true($value);
Assertion::false($value);
9 lib/Assert/Assertion.php
View
@@ -395,7 +395,7 @@ static public function inArray($value, array $choices, $message = null, $propert
* Assert that value is numeric.
*
* @param mixed $value
- * @param string $message;
+ * @param string $message
* @param string $propertyPath
* @return void
* @throws \Assert\AssertionFailedException
@@ -411,7 +411,7 @@ static public function numeric($value, $message = null, $propertyPath = null)
* Assert that value is array.
*
* @param mixed $value
- * @param string $message;
+ * @param string $message
* @param string $propertyPath
* @return void
* @throws \Assert\AssertionFailedException
@@ -428,7 +428,7 @@ static public function isArray($value, $message = null, $propertyPath = null)
*
* @param mixed $value
* @param string|integer $key
- * @param string $message;
+ * @param string $message
* @param string $propertyPath
* @return void
* @throws \Assert\AssertionFailedException
@@ -446,7 +446,7 @@ static public function keyExists($value, $key, $message = null, $propertyPath =
* Assert that value is not blank
*
* @param mixed $value
- * @param string $message;
+ * @param string $message
* @param string $propertyPath
* @return void
* @throws \Assert\AssertionFailedException
@@ -764,6 +764,7 @@ static public function classExists($value, $message = null, $propertyPath = null
*
* @param mixed $class
* @param string $interfaceName
+ * @param string $message
* @param string $propertyPath
* @return void
* @throws \Assert\AssertionFailedException
Please sign in to comment.
Something went wrong with that request. Please try again.