diff options
author | Andrew Dolgov <[email protected]> | 2021-11-18 07:32:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-18 07:32:28 +0300 |
commit | 63ec5a89657bb7f9650582b96e0bb255a0889b48 (patch) | |
tree | 074b61eedd7304ba1d8d7deec01d26973ef8e6b8 /vendor/beberlei/assert/lib/Assert/functions.php | |
parent | 3a3fde1a2e0beac6d179c6449eaad726100710d7 (diff) | |
parent | 2d830c6281c19a7ee29cd379f5aedc82deef3775 (diff) |
Merge branch 'wip-phpstan-level6'
Diffstat (limited to 'vendor/beberlei/assert/lib/Assert/functions.php')
-rw-r--r-- | vendor/beberlei/assert/lib/Assert/functions.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/vendor/beberlei/assert/lib/Assert/functions.php b/vendor/beberlei/assert/lib/Assert/functions.php index e0ccbd7d9..67bb6315e 100644 --- a/vendor/beberlei/assert/lib/Assert/functions.php +++ b/vendor/beberlei/assert/lib/Assert/functions.php @@ -20,12 +20,6 @@ namespace 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 $defaultPropertyPath - * - * @return AssertionChain - * * @example * * \Assert\that($value)->notEmpty()->integer(); @@ -33,8 +27,14 @@ namespace 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 */ -function that($value, $defaultMessage = null, string $defaultPropertyPath = null): AssertionChain +function that($value, $defaultMessage = null, $defaultPropertyPath = null) { return Assert::that($value, $defaultMessage, $defaultPropertyPath); } @@ -42,13 +42,13 @@ function that($value, $defaultMessage = null, string $defaultPropertyPath = null /** * Start validation on a set of values, returns {@link AssertionChain}. * - * @param mixed $values - * @param string|callable|null $defaultMessage + * @param mixed $values + * @param string $defaultMessage * @param string $defaultPropertyPath * - * @return AssertionChain + * @return \Assert\AssertionChain */ -function thatAll($values, $defaultMessage = null, string $defaultPropertyPath = null): AssertionChain +function thatAll($values, $defaultMessage = null, $defaultPropertyPath = null) { return Assert::thatAll($values, $defaultMessage, $defaultPropertyPath); } @@ -56,15 +56,15 @@ function thatAll($values, $defaultMessage = null, string $defaultPropertyPath = /** * Start validation and allow NULL, returns {@link AssertionChain}. * - * @param mixed $value - * @param string|callable|null $defaultMessage + * @param mixed $value + * @param string $defaultMessage * @param string $defaultPropertyPath * - * @return AssertionChain + * @return \Assert\AssertionChain * * @deprecated In favour of Assert::thatNullOr($value, $defaultMessage = null, $defaultPropertyPath = null) */ -function thatNullOr($value, $defaultMessage = null, string $defaultPropertyPath = null): AssertionChain +function thatNullOr($value, $defaultMessage = null, $defaultPropertyPath = null) { return Assert::thatNullOr($value, $defaultMessage, $defaultPropertyPath); } @@ -72,9 +72,9 @@ function thatNullOr($value, $defaultMessage = null, string $defaultPropertyPath /** * Create a lazy assertion object. * - * @return LazyAssertion + * @return \Assert\LazyAssertion */ -function lazy(): LazyAssertion +function lazy() { return Assert::lazy(); } |