diff options
author | Andrew Dolgov <[email protected]> | 2021-11-15 18:33:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-15 18:33:35 +0300 |
commit | 4c37fa4b41b0cab50a4fc192e9120042dbe36872 (patch) | |
tree | d7ca7cbd65de0cea9806870c8fb646ed15d978ae /vendor/beberlei/assert/lib/Assert/Assert.php | |
parent | 109b702ed0cd31a0dc8466b8127882d263705d8d (diff) |
update phpstan to 1.1.2; update php-qrcode to 3.4.1
Diffstat (limited to 'vendor/beberlei/assert/lib/Assert/Assert.php')
-rw-r--r-- | vendor/beberlei/assert/lib/Assert/Assert.php | 41 |
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) + ; } } |