summaryrefslogtreecommitdiff
path: root/vendor/beberlei/assert/lib/Assert/Assert.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/beberlei/assert/lib/Assert/Assert.php')
-rw-r--r--vendor/beberlei/assert/lib/Assert/Assert.php41
1 files changed, 21 insertions, 20 deletions
diff --git a/vendor/beberlei/assert/lib/Assert/Assert.php b/vendor/beberlei/assert/lib/Assert/Assert.php
index 6910258d6..39bd9d64d 100644
--- a/vendor/beberlei/assert/lib/Assert/Assert.php
+++ b/vendor/beberlei/assert/lib/Assert/Assert.php
@@ -31,12 +31,6 @@ abstract class Assert
* The invocation of this method starts an assertion chain
* that is happening on the passed value.
*
- * @param mixed $value
- * @param string|callable|null $defaultMessage
- * @param string|null $defaultPropertyPath
- *
- * @return AssertionChain
- *
* @example
*
* Assert::that($value)->notEmpty()->integer();
@@ -44,8 +38,14 @@ abstract class Assert
*
* The assertion chain can be stateful, that means be careful when you reuse
* it. You should never pass around the chain.
+ *
+ * @param mixed $value
+ * @param string $defaultMessage
+ * @param string $defaultPropertyPath
+ *
+ * @return \Assert\AssertionChain
*/
- public static function that($value, $defaultMessage = null, string $defaultPropertyPath = null): AssertionChain
+ public static function that($value, $defaultMessage = null, $defaultPropertyPath = null)
{
$assertionChain = new AssertionChain($value, $defaultMessage, $defaultPropertyPath);
@@ -55,13 +55,13 @@ abstract class Assert
/**
* Start validation on a set of values, returns {@link AssertionChain}.
*
- * @param mixed $values
- * @param string|callable|null $defaultMessage
- * @param string|null $defaultPropertyPath
+ * @param mixed $values
+ * @param string $defaultMessage
+ * @param string $defaultPropertyPath
*
- * @return AssertionChain
+ * @return \Assert\AssertionChain
*/
- public static function thatAll($values, $defaultMessage = null, string $defaultPropertyPath = null): AssertionChain
+ public static function thatAll($values, $defaultMessage = null, $defaultPropertyPath = null)
{
return static::that($values, $defaultMessage, $defaultPropertyPath)->all();
}
@@ -69,13 +69,13 @@ abstract class Assert
/**
* Start validation and allow NULL, returns {@link AssertionChain}.
*
- * @param mixed $value
- * @param string|callable|null $defaultMessage
- * @param string|null $defaultPropertyPath
+ * @param mixed $value
+ * @param string $defaultMessage
+ * @param string $defaultPropertyPath
*
- * @return AssertionChain
+ * @return \Assert\AssertionChain
*/
- public static function thatNullOr($value, $defaultMessage = null, string $defaultPropertyPath = null): AssertionChain
+ public static function thatNullOr($value, $defaultMessage = null, $defaultPropertyPath = null)
{
return static::that($value, $defaultMessage, $defaultPropertyPath)->nullOr();
}
@@ -83,14 +83,15 @@ abstract class Assert
/**
* Create a lazy assertion object.
*
- * @return LazyAssertion
+ * @return \Assert\LazyAssertion
*/
- public static function lazy(): LazyAssertion
+ public static function lazy()
{
$lazyAssertion = new LazyAssertion();
return $lazyAssertion
->setAssertClass(\get_called_class())
- ->setExceptionClass(static::$lazyAssertionExceptionClass);
+ ->setExceptionClass(static::$lazyAssertionExceptionClass)
+ ;
}
}