summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-15 18:33:35 +0300
committerAndrew Dolgov <[email protected]>2021-11-15 18:33:35 +0300
commit4c37fa4b41b0cab50a4fc192e9120042dbe36872 (patch)
treed7ca7cbd65de0cea9806870c8fb646ed15d978ae
parent109b702ed0cd31a0dc8466b8127882d263705d8d (diff)
update phpstan to 1.1.2; update php-qrcode to 3.4.1
-rw-r--r--vendor/beberlei/assert/composer.json29
-rw-r--r--vendor/beberlei/assert/lib/Assert/Assert.php41
-rw-r--r--vendor/beberlei/assert/lib/Assert/Assertion.php1087
-rw-r--r--vendor/beberlei/assert/lib/Assert/AssertionChain.php50
-rw-r--r--vendor/beberlei/assert/lib/Assert/AssertionFailedException.php11
-rw-r--r--vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php17
-rw-r--r--vendor/beberlei/assert/lib/Assert/LazyAssertion.php208
-rw-r--r--vendor/beberlei/assert/lib/Assert/LazyAssertionException.php7
-rw-r--r--vendor/beberlei/assert/lib/Assert/functions.php34
-rw-r--r--vendor/beberlei/assert/phpstan-code.neon7
-rw-r--r--vendor/chillerlan/php-qrcode/.github/workflows/tests.yml76
-rw-r--r--vendor/chillerlan/php-qrcode/.travis.yml5
-rw-r--r--vendor/chillerlan/php-qrcode/composer.json5
-rw-r--r--vendor/chillerlan/php-qrcode/examples/QRImageWithLogo.php12
-rw-r--r--vendor/chillerlan/php-qrcode/examples/imageWithLogo.php13
-rw-r--r--vendor/chillerlan/php-qrcode/src/Data/QRMatrix.php6
-rw-r--r--vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php10
-rw-r--r--vendor/chillerlan/php-settings-container/.travis.yml4
-rw-r--r--vendor/chillerlan/php-settings-container/README.md13
-rw-r--r--vendor/chillerlan/php-settings-container/composer.json4
-rw-r--r--vendor/composer/ClassLoader.php157
-rw-r--r--vendor/composer/LICENSE2
-rw-r--r--vendor/composer/autoload_classmap.php1
-rw-r--r--vendor/composer/autoload_real.php4
-rw-r--r--vendor/composer/autoload_static.php1
-rw-r--r--vendor/composer/installed.json1335
-rw-r--r--vendor/phpstan/phpstan/README.md2
-rw-r--r--vendor/phpstan/phpstan/phpstan.pharbin19115160 -> 19215905 bytes
-rw-r--r--vendor/phpstan/phpstan/phpstan.phar.asc26
29 files changed, 1407 insertions, 1760 deletions
diff --git a/vendor/beberlei/assert/composer.json b/vendor/beberlei/assert/composer.json
index e11870470..3dd5e7451 100644
--- a/vendor/beberlei/assert/composer.json
+++ b/vendor/beberlei/assert/composer.json
@@ -19,6 +19,17 @@
"assertion",
"validation"
],
+ "config": {
+ "sort-packages": true
+ },
+ "require": {
+ "php": "^7"
+ },
+ "require-dev": {
+ "friendsofphp/php-cs-fixer": "*",
+ "phpstan/phpstan-shim": "*",
+ "phpunit/phpunit": ">=6.0.0 <8"
+ },
"autoload": {
"psr-4": {
"Assert\\": "lib/Assert"
@@ -35,29 +46,11 @@
"tests/Assert/Tests/Fixtures/functions.php"
]
},
- "config": {
- "sort-packages": true
- },
- "require": {
- "php": "^7",
- "ext-simplexml": "*",
- "ext-mbstring": "*",
- "ext-ctype": "*",
- "ext-json": "*"
- },
- "require-dev": {
- "friendsofphp/php-cs-fixer": "*",
- "phpstan/phpstan-shim": "*",
- "phpunit/phpunit": ">=6.0.0 <8"
- },
"scripts": {
"assert:generate-docs": "php bin/generate_method_docs.php",
"assert:cs-lint": "php-cs-fixer fix --diff -vvv --dry-run",
"assert:cs-fix": "php-cs-fixer fix . -vvv || true",
"assert:sa-code": "vendor/bin/phpstan analyse --configuration=phpstan-code.neon --no-progress --ansi -l 7 bin lib",
"assert:sa-tests": "vendor/bin/phpstan analyse --configuration=phpstan-tests.neon --no-progress --ansi -l 7 tests"
- },
- "suggest": {
- "ext-intl": "Needed to allow Assertion::count(), Assertion::isCountable(), Assertion::minCount(), and Assertion::maxCount() to operate on ResourceBundles"
}
}
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)
+ ;
}
}
diff --git a/vendor/beberlei/assert/lib/Assert/Assertion.php b/vendor/beberlei/assert/lib/Assert/Assertion.php
index a8b04e529..0b06b065c 100644
--- a/vendor/beberlei/assert/lib/Assert/Assertion.php
+++ b/vendor/beberlei/assert/lib/Assert/Assertion.php
@@ -14,121 +14,112 @@
namespace Assert;
-use ArrayAccess;
use BadMethodCallException;
-use Countable;
-use DateTime;
-use ReflectionClass;
-use ReflectionException;
-use ResourceBundle;
-use SimpleXMLElement;
-use Throwable;
-use Traversable;
/**
* Assert library.
*
* @author Benjamin Eberlei <[email protected]>
*
- * @method static bool allAlnum(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is alphanumeric for all values.
- * @method static bool allBase64(string[] $value, string|callable $message = null, string $propertyPath = null) Assert that a constant is defined for all values.
- * @method static bool allBetween(mixed[] $value, mixed $lowerLimit, mixed $upperLimit, string|callable $message = null, string $propertyPath = null) Assert that a value is greater or equal than a lower limit, and less than or equal to an upper limit for all values.
- * @method static bool allBetweenExclusive(mixed[] $value, mixed $lowerLimit, mixed $upperLimit, string|callable $message = null, string $propertyPath = null) Assert that a value is greater than a lower limit, and less than an upper limit for all values.
- * @method static bool allBetweenLength(mixed[] $value, int $minLength, int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string length is between min and max lengths for all values.
- * @method static bool allBoolean(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is php boolean for all values.
- * @method static bool allChoice(mixed[] $value, array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is in array of choices for all values.
- * @method static bool allChoicesNotEmpty(array[] $values, array $choices, string|callable $message = null, string $propertyPath = null) Determines if the values array has every choice as key and that this choice has content for all values.
- * @method static bool allClassExists(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that the class exists for all values.
- * @method static bool allContains(mixed[] $string, string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string contains a sequence of chars for all values.
- * @method static bool allCount(array[]|Countable[]|ResourceBundle[]|SimpleXMLElement[] $countable, int $count, string|callable $message = null, string $propertyPath = null) Assert that the count of countable is equal to count for all values.
- * @method static bool allDate(string[] $value, string $format, string|callable $message = null, string $propertyPath = null) Assert that date is valid and corresponds to the given format for all values.
- * @method static bool allDefined(mixed[] $constant, string|callable $message = null, string $propertyPath = null) Assert that a constant is defined for all values.
- * @method static bool allDigit(mixed[] $value, string|callable $message = null, string $propertyPath = null) Validates if an integer or integerish is a digit for all values.
- * @method static bool allDirectory(string[] $value, string|callable $message = null, string $propertyPath = null) Assert that a directory exists for all values.
- * @method static bool allE164(string[] $value, string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid E164 Phone Number for all values.
- * @method static bool allEmail(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is an email address (using input_filter/FILTER_VALIDATE_EMAIL) for all values.
- * @method static bool allEndsWith(mixed[] $string, string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string ends with a sequence of chars for all values.
- * @method static bool allEq(mixed[] $value, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are equal (using ==) for all values.
- * @method static bool allEqArraySubset(mixed[] $value, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that the array contains the subset for all values.
- * @method static bool allExtensionLoaded(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that extension is loaded for all values.
- * @method static bool allExtensionVersion(string[] $extension, string $operator, mixed $version, string|callable $message = null, string $propertyPath = null) Assert that extension is loaded and a specific version is installed for all values.
- * @method static bool allFalse(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that the value is boolean False for all values.
- * @method static bool allFile(string[] $value, string|callable $message = null, string $propertyPath = null) Assert that a file exists for all values.
- * @method static bool allFloat(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is a php float for all values.
- * @method static bool allGreaterOrEqualThan(mixed[] $value, mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is greater or equal than given limit for all values.
- * @method static bool allGreaterThan(mixed[] $value, mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is greater than given limit for all values.
- * @method static bool allImplementsInterface(mixed[] $class, string $interfaceName, string|callable $message = null, string $propertyPath = null) Assert that the class implements the interface for all values.
- * @method static bool allInArray(mixed[] $value, array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is in array of choices. This is an alias of Assertion::choice() for all values.
- * @method static bool allInteger(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is a php integer for all values.
- * @method static bool allIntegerish(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is a php integer'ish for all values.
- * @method static bool allInterfaceExists(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that the interface exists for all values.
- * @method static bool allIp(string[] $value, int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv4 or IPv6 address for all values.
- * @method static bool allIpv4(string[] $value, int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv4 address for all values.
- * @method static bool allIpv6(string[] $value, int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv6 address for all values.
- * @method static bool allIsArray(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is an array for all values.
- * @method static bool allIsArrayAccessible(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is an array or an array-accessible object for all values.
- * @method static bool allIsCallable(mixed[] $value, string|callable $message = null, string $propertyPath = null) Determines that the provided value is callable for all values.
- * @method static bool allIsCountable(array[]|Countable[]|ResourceBundle[]|SimpleXMLElement[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is countable for all values.
- * @method static bool allIsInstanceOf(mixed[] $value, string $className, string|callable $message = null, string $propertyPath = null) Assert that value is instance of given class-name for all values.
- * @method static bool allIsJsonString(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid json string for all values.
- * @method static bool allIsObject(mixed[] $value, string|callable $message = null, string $propertyPath = null) Determines that the provided value is an object for all values.
- * @method static bool allIsResource(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is a resource for all values.
- * @method static bool allIsTraversable(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is an array or a traversable object for all values.
- * @method static bool allKeyExists(mixed[] $value, string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array for all values.
- * @method static bool allKeyIsset(mixed[] $value, string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array/array-accessible object using isset() for all values.
- * @method static bool allKeyNotExists(mixed[] $value, string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key does not exist in an array for all values.
- * @method static bool allLength(mixed[] $value, int $length, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string has a given length for all values.
- * @method static bool allLessOrEqualThan(mixed[] $value, mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less or equal than given limit for all values.
- * @method static bool allLessThan(mixed[] $value, mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less than given limit for all values.
- * @method static bool allMax(mixed[] $value, mixed $maxValue, string|callable $message = null, string $propertyPath = null) Assert that a number is smaller as a given limit for all values.
- * @method static bool allMaxCount(array[]|Countable[]|ResourceBundle[]|SimpleXMLElement[] $countable, int $count, string|callable $message = null, string $propertyPath = null) Assert that the countable have at most $count elements for all values.
- * @method static bool allMaxLength(mixed[] $value, int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string value is not longer than $maxLength chars for all values.
- * @method static bool allMethodExists(string[] $value, mixed $object, string|callable $message = null, string $propertyPath = null) Determines that the named method is defined in the provided object for all values.
- * @method static bool allMin(mixed[] $value, mixed $minValue, string|callable $message = null, string $propertyPath = null) Assert that a value is at least as big as a given limit for all values.
- * @method static bool allMinCount(array[]|Countable[]|ResourceBundle[]|SimpleXMLElement[] $countable, int $count, string|callable $message = null, string $propertyPath = null) Assert that the countable have at least $count elements for all values.
- * @method static bool allMinLength(mixed[] $value, int $minLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that a string is at least $minLength chars long for all values.
- * @method static bool allNoContent(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is empty for all values.
- * @method static bool allNotBlank(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is not blank for all values.
- * @method static bool allNotContains(mixed[] $string, string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string does not contains a sequence of chars for all values.
- * @method static bool allNotEmpty(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is not empty for all values.
- * @method static bool allNotEmptyKey(mixed[] $value, string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array/array-accessible object and its value is not empty for all values.
- * @method static bool allNotEq(mixed[] $value1, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not equal (using ==) for all values.
- * @method static bool allNotInArray(mixed[] $value, array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is not in array of choices for all values.
- * @method static bool allNotIsInstanceOf(mixed[] $value, string $className, string|callable $message = null, string $propertyPath = null) Assert that value is not instance of given class-name for all values.
- * @method static bool allNotNull(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is not null for all values.
- * @method static bool allNotRegex(mixed[] $value, string $pattern, string|callable $message = null, string $propertyPath = null) Assert that value does not match a regex for all values.
- * @method static bool allNotSame(mixed[] $value1, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not the same (using ===) for all values.
- * @method static bool allNull(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is null for all values.
- * @method static bool allNumeric(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is numeric for all values.
- * @method static bool allObjectOrClass(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that the value is an object, or a class that exists for all values.
- * @method static bool allPhpVersion(string[] $operator, mixed $version, string|callable $message = null, string $propertyPath = null) Assert on PHP version for all values.
- * @method static bool allPropertiesExist(mixed[] $value, array $properties, string|callable $message = null, string $propertyPath = null) Assert that the value is an object or class, and that the properties all exist for all values.
- * @method static bool allPropertyExists(mixed[] $value, string $property, string|callable $message = null, string $propertyPath = null) Assert that the value is an object or class, and that the property exists for all values.
- * @method static bool allRange(mixed[] $value, mixed $minValue, mixed $maxValue, string|callable $message = null, string $propertyPath = null) Assert that value is in range of numbers for all values.
- * @method static bool allReadable(string[] $value, string|callable $message = null, string $propertyPath = null) Assert that the value is something readable for all values.
- * @method static bool allRegex(mixed[] $value, string $pattern, string|callable $message = null, string $propertyPath = null) Assert that value matches a regex for all values.
- * @method static bool allSame(mixed[] $value, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are the same (using ===) for all values.
- * @method static bool allSatisfy(mixed[] $value, callable $callback, string|callable $message = null, string $propertyPath = null) Assert that the provided value is valid according to a callback for all values.
- * @method static bool allScalar(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is a PHP scalar for all values.
- * @method static bool allStartsWith(mixed[] $string, string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string starts with a sequence of chars for all values.
- * @method static bool allString(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is a string for all values.
- * @method static bool allSubclassOf(mixed[] $value, string $className, string|callable $message = null, string $propertyPath = null) Assert that value is subclass of given class-name for all values.
- * @method static bool allTrue(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that the value is boolean True for all values.
- * @method static bool allUrl(mixed[] $value, string|callable $message = null, string $propertyPath = null) Assert that value is an URL for all values.
- * @method static bool allUuid(string[] $value, string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid UUID for all values.
- * @method static bool allVersion(string[] $version1, string $operator, string $version2, string|callable $message = null, string $propertyPath = null) Assert comparison of two versions for all values.
- * @method static bool allWriteable(string[] $value, string|callable $message = null, string $propertyPath = null) Assert that the value is something writeable for all values.
+ * @method static bool allAlnum(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is alphanumeric for all values.
+ * @method static bool allBase64(string $value, string|callable $message = null, string $propertyPath = null) Assert that a constant is defined for all values.
+ * @method static bool allBetween(mixed $value, mixed $lowerLimit, mixed $upperLimit, string $message = null, string $propertyPath = null) Assert that a value is greater or equal than a lower limit, and less than or equal to an upper limit for all values.
+ * @method static bool allBetweenExclusive(mixed $value, mixed $lowerLimit, mixed $upperLimit, string $message = null, string $propertyPath = null) Assert that a value is greater than a lower limit, and less than an upper limit for all values.
+ * @method static bool allBetweenLength(mixed $value, int $minLength, int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string length is between min and max lengths for all values.
+ * @method static bool allBoolean(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is php boolean for all values.
+ * @method static bool allChoice(mixed $value, array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is in array of choices for all values.
+ * @method static bool allChoicesNotEmpty(array $values, array $choices, string|callable $message = null, string $propertyPath = null) Determines if the values array has every choice as key and that this choice has content for all values.
+ * @method static bool allClassExists(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that the class exists for all values.
+ * @method static bool allContains(mixed $string, string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string contains a sequence of chars for all values.
+ * @method static bool allCount(array|\Countable|\ResourceBundle|\SimpleXMLElement $countable, int $count, string $message = null, string $propertyPath = null) Assert that the count of countable is equal to count for all values.
+ * @method static bool allDate(string $value, string $format, string|callable $message = null, string $propertyPath = null) Assert that date is valid and corresponds to the given format for all values.
+ * @method static bool allDefined(mixed $constant, string|callable $message = null, string $propertyPath = null) Assert that a constant is defined for all values.
+ * @method static bool allDigit(mixed $value, string|callable $message = null, string $propertyPath = null) Validates if an integer or integerish is a digit for all values.
+ * @method static bool allDirectory(string $value, string|callable $message = null, string $propertyPath = null) Assert that a directory exists for all values.
+ * @method static bool allE164(string $value, string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid E164 Phone Number for all values.
+ * @method static bool allEmail(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is an email address (using input_filter/FILTER_VALIDATE_EMAIL) for all values.
+ * @method static bool allEndsWith(mixed $string, string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string ends with a sequence of chars for all values.
+ * @method static bool allEq(mixed $value, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are equal (using ==) for all values.
+ * @method static bool allEqArraySubset(mixed $value, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that the array contains the subset for all values.
+ * @method static bool allExtensionLoaded(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that extension is loaded for all values.
+ * @method static bool allExtensionVersion(string $extension, string $operator, mixed $version, string|callable $message = null, string $propertyPath = null) Assert that extension is loaded and a specific version is installed for all values.
+ * @method static bool allFalse(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that the value is boolean False for all values.
+ * @method static bool allFile(string $value, string|callable $message = null, string $propertyPath = null) Assert that a file exists for all values.
+ * @method static bool allFloat(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is a php float for all values.
+ * @method static bool allGreaterOrEqualThan(mixed $value, mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is greater or equal than given limit for all values.
+ * @method static bool allGreaterThan(mixed $value, mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is greater than given limit for all values.
+ * @method static bool allImplementsInterface(mixed $class, string $interfaceName, string|callable $message = null, string $propertyPath = null) Assert that the class implements the interface for all values.
+ * @method static bool allInArray(mixed $value, array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is in array of choices. This is an alias of Assertion::choice() for all values.
+ * @method static bool allInteger(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is a php integer for all values.
+ * @method static bool allIntegerish(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is a php integer'ish for all values.
+ * @method static bool allInterfaceExists(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that the interface exists for all values.
+ * @method static bool allIp(string $value, int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv4 or IPv6 address for all values.
+ * @method static bool allIpv4(string $value, int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv4 address for all values.
+ * @method static bool allIpv6(string $value, int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv6 address for all values.
+ * @method static bool allIsArray(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is an array for all values.
+ * @method static bool allIsArrayAccessible(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is an array or an array-accessible object for all values.
+ * @method static bool allIsCallable(mixed $value, string|callable $message = null, string $propertyPath = null) Determines that the provided value is callable for all values.
+ * @method static bool allIsCountable(array|\Countable|\ResourceBundle|\SimpleXMLElement $value, string|callable $message = null, string $propertyPath = null) Assert that value is countable for all values.
+ * @method static bool allIsInstanceOf(mixed $value, string $className, string|callable $message = null, string $propertyPath = null) Assert that value is instance of given class-name for all values.
+ * @method static bool allIsJsonString(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid json string for all values.
+ * @method static bool allIsObject(mixed $value, string|callable $message = null, string $propertyPath = null) Determines that the provided value is an object for all values.
+ * @method static bool allIsResource(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is a resource for all values.
+ * @method static bool allIsTraversable(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is an array or a traversable object for all values.
+ * @method static bool allKeyExists(mixed $value, string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array for all values.
+ * @method static bool allKeyIsset(mixed $value, string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array/array-accessible object using isset() for all values.
+ * @method static bool allKeyNotExists(mixed $value, string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key does not exist in an array for all values.
+ * @method static bool allLength(mixed $value, int $length, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string has a given length for all values.
+ * @method static bool allLessOrEqualThan(mixed $value, mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less or equal than given limit for all values.
+ * @method static bool allLessThan(mixed $value, mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less than given limit for all values.
+ * @method static bool allMax(mixed $value, mixed $maxValue, string|callable $message = null, string $propertyPath = null) Assert that a number is smaller as a given limit for all values.
+ * @method static bool allMaxCount(array|\Countable|\ResourceBundle|\SimpleXMLElement $countable, int $count, string $message = null, string $propertyPath = null) Assert that the countable have at most $count elements for all values.
+ * @method static bool allMaxLength(mixed $value, int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string value is not longer than $maxLength chars for all values.
+ * @method static bool allMethodExists(string $value, mixed $object, string|callable $message = null, string $propertyPath = null) Determines that the named method is defined in the provided object for all values.
+ * @method static bool allMin(mixed $value, mixed $minValue, string|callable $message = null, string $propertyPath = null) Assert that a value is at least as big as a given limit for all values.
+ * @method static bool allMinCount(array|\Countable|\ResourceBundle|\SimpleXMLElement $countable, int $count, string $message = null, string $propertyPath = null) Assert that the countable have at least $count elements for all values.
+ * @method static bool allMinLength(mixed $value, int $minLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that a string is at least $minLength chars long for all values.
+ * @method static bool allNoContent(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is empty for all values.
+ * @method static bool allNotBlank(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is not blank for all values.
+ * @method static bool allNotContains(mixed $string, string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string does not contains a sequence of chars for all values.
+ * @method static bool allNotEmpty(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is not empty for all values.
+ * @method static bool allNotEmptyKey(mixed $value, string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array/array-accessible object and its value is not empty for all values.
+ * @method static bool allNotEq(mixed $value1, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not equal (using == ) for all values.
+ * @method static bool allNotInArray(mixed $value, array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is not in array of choices for all values.
+ * @method static bool allNotIsInstanceOf(mixed $value, string $className, string|callable $message = null, string $propertyPath = null) Assert that value is not instance of given class-name for all values.
+ * @method static bool allNotNull(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is not null for all values.
+ * @method static bool allNotRegex(mixed $value, string $pattern, string|callable $message = null, string $propertyPath = null) Assert that value does not match a regex for all values.
+ * @method static bool allNotSame(mixed $value1, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not the same (using === ) for all values.
+ * @method static bool allNull(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is null for all values.
+ * @method static bool allNumeric(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is numeric for all values.
+ * @method static bool allObjectOrClass(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that the value is an object, or a class that exists for all values.
+ * @method static bool allPhpVersion(string $operator, mixed $version, string|callable $message = null, string $propertyPath = null) Assert on PHP version for all values.
+ * @method static bool allPropertiesExist(mixed $value, array $properties, string|callable $message = null, string $propertyPath = null) Assert that the value is an object or class, and that the properties all exist for all values.
+ * @method static bool allPropertyExists(mixed $value, string $property, string|callable $message = null, string $propertyPath = null) Assert that the value is an object or class, and that the property exists for all values.
+ * @method static bool allRange(mixed $value, mixed $minValue, mixed $maxValue, string|callable $message = null, string $propertyPath = null) Assert that value is in range of numbers for all values.
+ * @method static bool allReadable(string $value, string|callable $message = null, string $propertyPath = null) Assert that the value is something readable for all values.
+ * @method static bool allRegex(mixed $value, string $pattern, string|callable $message = null, string $propertyPath = null) Assert that value matches a regex for all values.
+ * @method static bool allSame(mixed $value, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are the same (using ===) for all values.
+ * @method static bool allSatisfy(mixed $value, callable $callback, string|callable $message = null, string $propertyPath = null) Assert that the provided value is valid according to a callback for all values.
+ * @method static bool allScalar(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is a PHP scalar for all values.
+ * @method static bool allStartsWith(mixed $string, string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string starts with a sequence of chars for all values.
+ * @method static bool allString(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is a string for all values.
+ * @method static bool allSubclassOf(mixed $value, string $className, string|callable $message = null, string $propertyPath = null) Assert that value is subclass of given class-name for all values.
+ * @method static bool allTrue(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that the value is boolean True for all values.
+ * @method static bool allUrl(mixed $value, string|callable $message = null, string $propertyPath = null) Assert that value is an URL for all values.
+ * @method static bool allUuid(string $value, string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid UUID for all values.
+ * @method static bool allVersion(string $version1, string $operator, string $version2, string|callable $message = null, string $propertyPath = null) Assert comparison of two versions for all values.
+ * @method static bool allWriteable(string $value, string|callable $message = null, string $propertyPath = null) Assert that the value is something writeable for all values.
* @method static bool nullOrAlnum(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is alphanumeric or that the value is null.
* @method static bool nullOrBase64(string|null $value, string|callable $message = null, string $propertyPath = null) Assert that a constant is defined or that the value is null.
- * @method static bool nullOrBetween(mixed|null $value, mixed $lowerLimit, mixed $upperLimit, string|callable $message = null, string $propertyPath = null) Assert that a value is greater or equal than a lower limit, and less than or equal to an upper limit or that the value is null.
- * @method static bool nullOrBetweenExclusive(mixed|null $value, mixed $lowerLimit, mixed $upperLimit, string|callable $message = null, string $propertyPath = null) Assert that a value is greater than a lower limit, and less than an upper limit or that the value is null.
+ * @method static bool nullOrBetween(mixed|null $value, mixed $lowerLimit, mixed $upperLimit, string $message = null, string $propertyPath = null) Assert that a value is greater or equal than a lower limit, and less than or equal to an upper limit or that the value is null.
+ * @method static bool nullOrBetweenExclusive(mixed|null $value, mixed $lowerLimit, mixed $upperLimit, string $message = null, string $propertyPath = null) Assert that a value is greater than a lower limit, and less than an upper limit or that the value is null.
* @method static bool nullOrBetweenLength(mixed|null $value, int $minLength, int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string length is between min and max lengths or that the value is null.
* @method static bool nullOrBoolean(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is php boolean or that the value is null.
* @method static bool nullOrChoice(mixed|null $value, array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is in array of choices or that the value is null.
* @method static bool nullOrChoicesNotEmpty(array|null $values, array $choices, string|callable $message = null, string $propertyPath = null) Determines if the values array has every choice as key and that this choice has content or that the value is null.
* @method static bool nullOrClassExists(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that the class exists or that the value is null.
* @method static bool nullOrContains(mixed|null $string, string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string contains a sequence of chars or that the value is null.
- * @method static bool nullOrCount(array|Countable|ResourceBundle|SimpleXMLElement|null $countable, int $count, string|callable $message = null, string $propertyPath = null) Assert that the count of countable is equal to count or that the value is null.
+ * @method static bool nullOrCount(array|\Countable|\ResourceBundle|\SimpleXMLElement|null $countable, int $count, string $message = null, string $propertyPath = null) Assert that the count of countable is equal to count or that the value is null.
* @method static bool nullOrDate(string|null $value, string $format, string|callable $message = null, string $propertyPath = null) Assert that date is valid and corresponds to the given format or that the value is null.
* @method static bool nullOrDefined(mixed|null $constant, string|callable $message = null, string $propertyPath = null) Assert that a constant is defined or that the value is null.
* @method static bool nullOrDigit(mixed|null $value, string|callable $message = null, string $propertyPath = null) Validates if an integer or integerish is a digit or that the value is null.
@@ -156,7 +147,7 @@ use Traversable;
* @method static bool nullOrIsArray(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is an array or that the value is null.
* @method static bool nullOrIsArrayAccessible(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is an array or an array-accessible object or that the value is null.
* @method static bool nullOrIsCallable(mixed|null $value, string|callable $message = null, string $propertyPath = null) Determines that the provided value is callable or that the value is null.
- * @method static bool nullOrIsCountable(array|Countable|ResourceBundle|SimpleXMLElement|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is countable or that the value is null.
+ * @method static bool nullOrIsCountable(array|\Countable|\ResourceBundle|\SimpleXMLElement|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is countable or that the value is null.
* @method static bool nullOrIsInstanceOf(mixed|null $value, string $className, string|callable $message = null, string $propertyPath = null) Assert that value is instance of given class-name or that the value is null.
* @method static bool nullOrIsJsonString(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid json string or that the value is null.
* @method static bool nullOrIsObject(mixed|null $value, string|callable $message = null, string $propertyPath = null) Determines that the provided value is an object or that the value is null.
@@ -169,23 +160,23 @@ use Traversable;
* @method static bool nullOrLessOrEqualThan(mixed|null $value, mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less or equal than given limit or that the value is null.
* @method static bool nullOrLessThan(mixed|null $value, mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less than given limit or that the value is null.
* @method static bool nullOrMax(mixed|null $value, mixed $maxValue, string|callable $message = null, string $propertyPath = null) Assert that a number is smaller as a given limit or that the value is null.
- * @method static bool nullOrMaxCount(array|Countable|ResourceBundle|SimpleXMLElement|null $countable, int $count, string|callable $message = null, string $propertyPath = null) Assert that the countable have at most $count elements or that the value is null.
+ * @method static bool nullOrMaxCount(array|\Countable|\ResourceBundle|\SimpleXMLElement|null $countable, int $count, string $message = null, string $propertyPath = null) Assert that the countable have at most $count elements or that the value is null.
* @method static bool nullOrMaxLength(mixed|null $value, int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string value is not longer than $maxLength chars or that the value is null.
* @method static bool nullOrMethodExists(string|null $value, mixed $object, string|callable $message = null, string $propertyPath = null) Determines that the named method is defined in the provided object or that the value is null.
* @method static bool nullOrMin(mixed|null $value, mixed $minValue, string|callable $message = null, string $propertyPath = null) Assert that a value is at least as big as a given limit or that the value is null.
- * @method static bool nullOrMinCount(array|Countable|ResourceBundle|SimpleXMLElement|null $countable, int $count, string|callable $message = null, string $propertyPath = null) Assert that the countable have at least $count elements or that the value is null.
+ * @method static bool nullOrMinCount(array|\Countable|\ResourceBundle|\SimpleXMLElement|null $countable, int $count, string $message = null, string $propertyPath = null) Assert that the countable have at least $count elements or that the value is null.
* @method static bool nullOrMinLength(mixed|null $value, int $minLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that a string is at least $minLength chars long or that the value is null.
* @method static bool nullOrNoContent(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is empty or that the value is null.
* @method static bool nullOrNotBlank(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is not blank or that the value is null.
* @method static bool nullOrNotContains(mixed|null $string, string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string does not contains a sequence of chars or that the value is null.
* @method static bool nullOrNotEmpty(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is not empty or that the value is null.
* @method static bool nullOrNotEmptyKey(mixed|null $value, string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array/array-accessible object and its value is not empty or that the value is null.
- * @method static bool nullOrNotEq(mixed|null $value1, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not equal (using ==) or that the value is null.
+ * @method static bool nullOrNotEq(mixed|null $value1, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not equal (using == ) or that the value is null.
* @method static bool nullOrNotInArray(mixed|null $value, array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is not in array of choices or that the value is null.
* @method static bool nullOrNotIsInstanceOf(mixed|null $value, string $className, string|callable $message = null, string $propertyPath = null) Assert that value is not instance of given class-name or that the value is null.
* @method static bool nullOrNotNull(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is not null or that the value is null.
* @method static bool nullOrNotRegex(mixed|null $value, string $pattern, string|callable $message = null, string $propertyPath = null) Assert that value does not match a regex or that the value is null.
- * @method static bool nullOrNotSame(mixed|null $value1, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not the same (using ===) or that the value is null.
+ * @method static bool nullOrNotSame(mixed|null $value1, mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not the same (using === ) or that the value is null.
* @method static bool nullOrNull(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is null or that the value is null.
* @method static bool nullOrNumeric(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that value is numeric or that the value is null.
* @method static bool nullOrObjectOrClass(mixed|null $value, string|callable $message = null, string $propertyPath = null) Assert that the value is an object, or a class that exists or that the value is null.
@@ -298,16 +289,14 @@ class Assertion
/**
* Assert that two values are equal (using ==).
*
- * @param mixed $value
- * @param mixed $value2
+ * @param mixed $value
+ * @param mixed $value2
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function eq($value, $value2, $message = null, string $propertyPath = null): bool
+ public static function eq($value, $value2, $message = null, $propertyPath = null)
{
if ($value != $value2) {
$message = \sprintf(
@@ -325,16 +314,14 @@ class Assertion
/**
* Assert that the array contains the subset.
*
- * @param mixed $value
- * @param mixed $value2
+ * @param mixed $value
+ * @param mixed $value2
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function eqArraySubset($value, $value2, $message = null, string $propertyPath = null): bool
+ public static function eqArraySubset($value, $value2, $message = null, $propertyPath = null)
{
static::isArray($value, $message, $propertyPath);
static::isArray($value2, $message, $propertyPath);
@@ -348,16 +335,14 @@ class Assertion
/**
* Assert that two values are the same (using ===).
*
- * @param mixed $value
- * @param mixed $value2
+ * @param mixed $value
+ * @param mixed $value2
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function same($value, $value2, $message = null, string $propertyPath = null): bool
+ public static function same($value, $value2, $message = null, $propertyPath = null)
{
if ($value !== $value2) {
$message = \sprintf(
@@ -373,18 +358,16 @@ class Assertion
}
/**
- * Assert that two values are not equal (using ==).
+ * Assert that two values are not equal (using == ).
*
- * @param mixed $value1
- * @param mixed $value2
+ * @param mixed $value1
+ * @param mixed $value2
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function notEq($value1, $value2, $message = null, string $propertyPath = null): bool
+ public static function notEq($value1, $value2, $message = null, $propertyPath = null)
{
if ($value1 == $value2) {
$message = \sprintf(
@@ -399,18 +382,16 @@ class Assertion
}
/**
- * Assert that two values are not the same (using ===).
+ * Assert that two values are not the same (using === ).
*
- * @param mixed $value1
- * @param mixed $value2
+ * @param mixed $value1
+ * @param mixed $value2
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function notSame($value1, $value2, $message = null, string $propertyPath = null): bool
+ public static function notSame($value1, $value2, $message = null, $propertyPath = null)
{
if ($value1 === $value2) {
$message = \sprintf(
@@ -427,16 +408,14 @@ class Assertion
/**
* Assert that value is not in array of choices.
*
- * @param mixed $value
- * @param array $choices
+ * @param mixed $value
+ * @param array $choices
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function notInArray($value, array $choices, $message = null, string $propertyPath = null): bool
+ public static function notInArray($value, array $choices, $message = null, $propertyPath = null)
{
if (true === \in_array($value, $choices)) {
$message = \sprintf(
@@ -453,15 +432,13 @@ class Assertion
/**
* Assert that value is a php integer.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function integer($value, $message = null, string $propertyPath = null): bool
+ public static function integer($value, $message = null, $propertyPath = null)
{
if (!\is_int($value)) {
$message = \sprintf(
@@ -478,15 +455,13 @@ class Assertion
/**
* Assert that value is a php float.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function float($value, $message = null, string $propertyPath = null): bool
+ public static function float($value, $message = null, $propertyPath = null)
{
if (!\is_float($value)) {
$message = \sprintf(
@@ -503,17 +478,15 @@ class Assertion
/**
* Validates if an integer or integerish is a digit.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function digit($value, $message = null, string $propertyPath = null): bool
+ public static function digit($value, $message = null, $propertyPath = null)
{
- if (!\ctype_digit((string)$value)) {
+ if (!\ctype_digit((string) $value)) {
$message = \sprintf(
static::generateMessage($message ?: 'Value "%s" is not a digit.'),
static::stringify($value)
@@ -528,15 +501,13 @@ class Assertion
/**
* Assert that value is a php integer'ish.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function integerish($value, $message = null, string $propertyPath = null): bool
+ public static function integerish($value, $message = null, $propertyPath = null)
{
if (
\is_resource($value) ||
@@ -566,15 +537,13 @@ class Assertion
/**
* Assert that value is php boolean.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function boolean($value, $message = null, string $propertyPath = null): bool
+ public static function boolean($value, $message = null, $propertyPath = null)
{
if (!\is_bool($value)) {
$message = \sprintf(
@@ -591,15 +560,13 @@ class Assertion
/**
* Assert that value is a PHP scalar.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function scalar($value, $message = null, string $propertyPath = null): bool
+ public static function scalar($value, $message = null, $propertyPath = null)
{
if (!\is_scalar($value)) {
$message = \sprintf(
@@ -616,15 +583,13 @@ class Assertion
/**
* Assert that value is not empty.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function notEmpty($value, $message = null, string $propertyPath = null): bool
+ public static function notEmpty($value, $message = null, $propertyPath = null)
{
if (empty($value)) {
$message = \sprintf(
@@ -641,15 +606,13 @@ class Assertion
/**
* Assert that value is empty.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function noContent($value, $message = null, string $propertyPath = null): bool
+ public static function noContent($value, $message = null, $propertyPath = null)
{
if (!empty($value)) {
$message = \sprintf(
@@ -666,13 +629,13 @@ class Assertion
/**
* Assert that value is null.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
*/
- public static function null($value, $message = null, string $propertyPath = null): bool
+ public static function null($value, $message = null, $propertyPath = null)
{
if (null !== $value) {
$message = \sprintf(
@@ -689,15 +652,13 @@ class Assertion
/**
* Assert that value is not null.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function notNull($value, $message = null, string $propertyPath = null): bool
+ public static function notNull($value, $message = null, $propertyPath = null)
{
if (null === $value) {
$message = \sprintf(
@@ -714,15 +675,13 @@ class Assertion
/**
* Assert that value is a string.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function string($value, $message = null, string $propertyPath = null)
+ public static function string($value, $message = null, $propertyPath = null)
{
if (!\is_string($value)) {
$message = \sprintf(
@@ -740,16 +699,14 @@ class Assertion
/**
* Assert that value matches a regex.
*
- * @param mixed $value
- * @param string $pattern
+ * @param mixed $value
+ * @param string $pattern
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function regex($value, $pattern, $message = null, string $propertyPath = null): bool
+ public static function regex($value, $pattern, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
@@ -768,16 +725,16 @@ class Assertion
/**
* Assert that value does not match a regex.
*
- * @param mixed $value
- * @param string $pattern
+ * @param mixed $value
+ * @param string $pattern
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
*
- * @throws AssertionFailedException
+ * @throws \Assert\AssertionFailedException
*/
- public static function notRegex($value, $pattern, $message = null, string $propertyPath = null): bool
+ public static function notRegex($value, $pattern, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
@@ -796,17 +753,15 @@ class Assertion
/**
* Assert that string has a given length.
*
- * @param mixed $value
- * @param int $length
+ * @param mixed $value
+ * @param int $length
* @param string|callable|null $message
- * @param string|null $propertyPath
- * @param string $encoding
+ * @param string|null $propertyPath
+ * @param string $encoding
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function length($value, $length, $message = null, string $propertyPath = null, $encoding = 'utf8'): bool
+ public static function length($value, $length, $message = null, $propertyPath = null, $encoding = 'utf8')
{
static::string($value, $message, $propertyPath);
@@ -827,17 +782,15 @@ class Assertion
/**
* Assert that a string is at least $minLength chars long.
*
- * @param mixed $value
- * @param int $minLength
+ * @param mixed $value
+ * @param int $minLength
* @param string|callable|null $message
- * @param string|null $propertyPath
- * @param string $encoding
+ * @param string|null $propertyPath
+ * @param string $encoding
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function minLength($value, $minLength, $message = null, string $propertyPath = null, $encoding = 'utf8'): bool
+ public static function minLength($value, $minLength, $message = null, $propertyPath = null, $encoding = 'utf8')
{
static::string($value, $message, $propertyPath);
@@ -858,17 +811,15 @@ class Assertion
/**
* Assert that string value is not longer than $maxLength chars.
*
- * @param mixed $value
- * @param int $maxLength
+ * @param mixed $value
+ * @param int $maxLength
* @param string|callable|null $message
- * @param string|null $propertyPath
- * @param string $encoding
+ * @param string|null $propertyPath
+ * @param string $encoding
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function maxLength($value, $maxLength, $message = null, string $propertyPath = null, $encoding = 'utf8'): bool
+ public static function maxLength($value, $maxLength, $message = null, $propertyPath = null, $encoding = 'utf8')
{
static::string($value, $message, $propertyPath);
@@ -889,18 +840,16 @@ class Assertion
/**
* Assert that string length is between min and max lengths.
*
- * @param mixed $value
- * @param int $minLength
- * @param int $maxLength
+ * @param mixed $value
+ * @param int $minLength
+ * @param int $maxLength
* @param string|callable|null $message
- * @param string|null $propertyPath
- * @param string $encoding
+ * @param string|null $propertyPath
+ * @param string $encoding
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function betweenLength($value, $minLength, $maxLength, $message = null, string $propertyPath = null, $encoding = 'utf8'): bool
+ public static function betweenLength($value, $minLength, $maxLength, $message = null, $propertyPath = null, $encoding = 'utf8')
{
static::string($value, $message, $propertyPath);
static::minLength($value, $minLength, $message, $propertyPath, $encoding);
@@ -912,17 +861,15 @@ class Assertion
/**
* Assert that string starts with a sequence of chars.
*
- * @param mixed $string
- * @param string $needle
+ * @param mixed $string
+ * @param string $needle
* @param string|callable|null $message
- * @param string|null $propertyPath
- * @param string $encoding
+ * @param string|null $propertyPath
+ * @param string $encoding
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function startsWith($string, $needle, $message = null, string $propertyPath = null, $encoding = 'utf8'): bool
+ public static function startsWith($string, $needle, $message = null, $propertyPath = null, $encoding = 'utf8')
{
static::string($string, $message, $propertyPath);
@@ -942,17 +889,15 @@ class Assertion
/**
* Assert that string ends with a sequence of chars.
*
- * @param mixed $string
- * @param string $needle
+ * @param mixed $string
+ * @param string $needle
* @param string|callable|null $message
- * @param string|null $propertyPath
- * @param string $encoding
+ * @param string|null $propertyPath
+ * @param string $encoding
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function endsWith($string, $needle, $message = null, string $propertyPath = null, $encoding = 'utf8'): bool
+ public static function endsWith($string, $needle, $message = null, $propertyPath = null, $encoding = 'utf8')
{
static::string($string, $message, $propertyPath);
@@ -974,17 +919,15 @@ class Assertion
/**
* Assert that string contains a sequence of chars.
*
- * @param mixed $string
- * @param string $needle
+ * @param mixed $string
+ * @param string $needle
* @param string|callable|null $message
- * @param string|null $propertyPath
- * @param string $encoding
+ * @param string|null $propertyPath
+ * @param string $encoding
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function contains($string, $needle, $message = null, string $propertyPath = null, $encoding = 'utf8'): bool
+ public static function contains($string, $needle, $message = null, $propertyPath = null, $encoding = 'utf8')
{
static::string($string, $message, $propertyPath);
@@ -1004,17 +947,15 @@ class Assertion
/**
* Assert that string does not contains a sequence of chars.
*
- * @param mixed $string
- * @param string $needle
+ * @param mixed $string
+ * @param string $needle
* @param string|callable|null $message
- * @param string|null $propertyPath
- * @param string $encoding
+ * @param string|null $propertyPath
+ * @param string $encoding
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function notContains($string, $needle, $message = null, string $propertyPath = null, $encoding = 'utf8'): bool
+ public static function notContains($string, $needle, $message = null, $propertyPath = null, $encoding = 'utf8')
{
static::string($string, $message, $propertyPath);
@@ -1034,16 +975,14 @@ class Assertion
/**
* Assert that value is in array of choices.
*
- * @param mixed $value
- * @param array $choices
+ * @param mixed $value
+ * @param array $choices
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function choice($value, array $choices, $message = null, string $propertyPath = null): bool
+ public static function choice($value, array $choices, $message = null, $propertyPath = null)
{
if (!\in_array($value, $choices, true)) {
$message = \sprintf(
@@ -1063,16 +1002,14 @@ class Assertion
*
* This is an alias of {@see choice()}.
*
- * @param mixed $value
- * @param array $choices
+ * @param mixed $value
+ * @param array $choices
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function inArray($value, array $choices, $message = null, string $propertyPath = null): bool
+ public static function inArray($value, array $choices, $message = null, $propertyPath = null)
{
return static::choice($value, $choices, $message, $propertyPath);
}
@@ -1080,15 +1017,13 @@ class Assertion
/**
* Assert that value is numeric.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function numeric($value, $message = null, string $propertyPath = null): bool
+ public static function numeric($value, $message = null, $propertyPath = null)
{
if (!\is_numeric($value)) {
$message = \sprintf(
@@ -1105,13 +1040,13 @@ class Assertion
/**
* Assert that value is a resource.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
*/
- public static function isResource($value, $message = null, string $propertyPath = null): bool
+ public static function isResource($value, $message = null, $propertyPath = null)
{
if (!\is_resource($value)) {
$message = \sprintf(
@@ -1128,15 +1063,13 @@ class Assertion
/**
* Assert that value is an array.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function isArray($value, $message = null, string $propertyPath = null): bool
+ public static function isArray($value, $message = null, $propertyPath = null)
{
if (!\is_array($value)) {
$message = \sprintf(
@@ -1153,17 +1086,15 @@ class Assertion
/**
* Assert that value is an array or a traversable object.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function isTraversable($value, $message = null, string $propertyPath = null): bool
+ public static function isTraversable($value, $message = null, $propertyPath = null)
{
- if (!\is_array($value) && !$value instanceof Traversable) {
+ if (!\is_array($value) && !$value instanceof \Traversable) {
$message = \sprintf(
static::generateMessage($message ?: 'Value "%s" is not an array and does not implement Traversable.'),
static::stringify($value)
@@ -1178,17 +1109,15 @@ class Assertion
/**
* Assert that value is an array or an array-accessible object.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function isArrayAccessible($value, $message = null, string $propertyPath = null): bool
+ public static function isArrayAccessible($value, $message = null, $propertyPath = null)
{
- if (!\is_array($value) && !$value instanceof ArrayAccess) {
+ if (!\is_array($value) && !$value instanceof \ArrayAccess) {
$message = \sprintf(
static::generateMessage($message ?: 'Value "%s" is not an array and does not implement ArrayAccess.'),
static::stringify($value)
@@ -1203,20 +1132,18 @@ class Assertion
/**
* Assert that value is countable.
*
- * @param array|Countable|ResourceBundle|SimpleXMLElement $value
- * @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param array|\Countable|\ResourceBundle|\SimpleXMLElement $value
+ * @param string|callable|null $message
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function isCountable($value, $message = null, string $propertyPath = null): bool
+ public static function isCountable($value, $message = null, $propertyPath = null)
{
if (\function_exists('is_countable')) {
$assert = \is_countable($value);
} else {
- $assert = \is_array($value) || $value instanceof Countable || $value instanceof ResourceBundle || $value instanceof SimpleXMLElement;
+ $assert = \is_array($value) || $value instanceof \Countable || $value instanceof \ResourceBundle || $value instanceof \SimpleXMLElement;
}
if (!$assert) {
@@ -1234,16 +1161,14 @@ class Assertion
/**
* Assert that key exists in an array.
*
- * @param mixed $value
- * @param string|int $key
+ * @param mixed $value
+ * @param string|int $key
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function keyExists($value, $key, $message = null, string $propertyPath = null): bool
+ public static function keyExists($value, $key, $message = null, $propertyPath = null)
{
static::isArray($value, $message, $propertyPath);
@@ -1262,16 +1187,14 @@ class Assertion
/**
* Assert that key does not exist in an array.
*
- * @param mixed $value
- * @param string|int $key
+ * @param mixed $value
+ * @param string|int $key
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function keyNotExists($value, $key, $message = null, string $propertyPath = null): bool
+ public static function keyNotExists($value, $key, $message = null, $propertyPath = null)
{
static::isArray($value, $message, $propertyPath);
@@ -1290,16 +1213,14 @@ class Assertion
/**
* Assert that key exists in an array/array-accessible object using isset().
*
- * @param mixed $value
- * @param string|int $key
+ * @param mixed $value
+ * @param string|int $key
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function keyIsset($value, $key, $message = null, string $propertyPath = null): bool
+ public static function keyIsset($value, $key, $message = null, $propertyPath = null)
{
static::isArrayAccessible($value, $message, $propertyPath);
@@ -1318,16 +1239,14 @@ class Assertion
/**
* Assert that key exists in an array/array-accessible object and its value is not empty.
*
- * @param mixed $value
- * @param string|int $key
+ * @param mixed $value
+ * @param string|int $key
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function notEmptyKey($value, $key, $message = null, string $propertyPath = null): bool
+ public static function notEmptyKey($value, $key, $message = null, $propertyPath = null)
{
static::keyIsset($value, $key, $message, $propertyPath);
static::notEmpty($value[$key], $message, $propertyPath);
@@ -1338,15 +1257,13 @@ class Assertion
/**
* Assert that value is not blank.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function notBlank($value, $message = null, string $propertyPath = null): bool
+ public static function notBlank($value, $message = null, $propertyPath = null)
{
if (false === $value || (empty($value) && '0' != $value) || (\is_string($value) && '' === \trim($value))) {
$message = \sprintf(
@@ -1363,16 +1280,14 @@ class Assertion
/**
* Assert that value is instance of given class-name.
*
- * @param mixed $value
- * @param string $className
+ * @param mixed $value
+ * @param string $className
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function isInstanceOf($value, $className, $message = null, string $propertyPath = null): bool
+ public static function isInstanceOf($value, $className, $message = null, $propertyPath = null)
{
if (!($value instanceof $className)) {
$message = \sprintf(
@@ -1390,16 +1305,14 @@ class Assertion
/**
* Assert that value is not instance of given class-name.
*
- * @param mixed $value
- * @param string $className
+ * @param mixed $value
+ * @param string $className
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function notIsInstanceOf($value, $className, $message = null, string $propertyPath = null): bool
+ public static function notIsInstanceOf($value, $className, $message = null, $propertyPath = null)
{
if ($value instanceof $className) {
$message = \sprintf(
@@ -1417,16 +1330,14 @@ class Assertion
/**
* Assert that value is subclass of given class-name.
*
- * @param mixed $value
- * @param string $className
+ * @param mixed $value
+ * @param string $className
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function subclassOf($value, $className, $message = null, string $propertyPath = null): bool
+ public static function subclassOf($value, $className, $message = null, $propertyPath = null)
{
if (!\is_subclass_of($value, $className)) {
$message = \sprintf(
@@ -1444,17 +1355,15 @@ class Assertion
/**
* Assert that value is in range of numbers.
*
- * @param mixed $value
- * @param mixed $minValue
- * @param mixed $maxValue
+ * @param mixed $value
+ * @param mixed $minValue
+ * @param mixed $maxValue
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function range($value, $minValue, $maxValue, $message = null, string $propertyPath = null): bool
+ public static function range($value, $minValue, $maxValue, $message = null, $propertyPath = null)
{
static::numeric($value, $message, $propertyPath);
@@ -1475,16 +1384,14 @@ class Assertion
/**
* Assert that a value is at least as big as a given limit.
*
- * @param mixed $value
- * @param mixed $minValue
+ * @param mixed $value
+ * @param mixed $minValue
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function min($value, $minValue, $message = null, string $propertyPath = null): bool
+ public static function min($value, $minValue, $message = null, $propertyPath = null)
{
static::numeric($value, $message, $propertyPath);
@@ -1504,16 +1411,14 @@ class Assertion
/**
* Assert that a number is smaller as a given limit.
*
- * @param mixed $value
- * @param mixed $maxValue
+ * @param mixed $value
+ * @param mixed $maxValue
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function max($value, $maxValue, $message = null, string $propertyPath = null): bool
+ public static function max($value, $maxValue, $message = null, $propertyPath = null)
{
static::numeric($value, $message, $propertyPath);
@@ -1533,15 +1438,13 @@ class Assertion
/**
* Assert that a file exists.
*
- * @param string $value
+ * @param string $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function file($value, $message = null, string $propertyPath = null): bool
+ public static function file($value, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
static::notEmpty($value, $message, $propertyPath);
@@ -1561,15 +1464,13 @@ class Assertion
/**
* Assert that a directory exists.
*
- * @param string $value
+ * @param string $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function directory($value, $message = null, string $propertyPath = null): bool
+ public static function directory($value, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
@@ -1588,15 +1489,13 @@ class Assertion
/**
* Assert that the value is something readable.
*
- * @param string $value
+ * @param string $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function readable($value, $message = null, string $propertyPath = null): bool
+ public static function readable($value, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
@@ -1615,15 +1514,13 @@ class Assertion
/**
* Assert that the value is something writeable.
*
- * @param string $value
+ * @param string $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function writeable($value, $message = null, string $propertyPath = null): bool
+ public static function writeable($value, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
@@ -1642,15 +1539,13 @@ class Assertion
/**
* Assert that value is an email address (using input_filter/FILTER_VALIDATE_EMAIL).
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function email($value, $message = null, string $propertyPath = null): bool
+ public static function email($value, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
@@ -1671,18 +1566,16 @@ class Assertion
*
* This code snipped was taken from the Symfony project and modified to the special demands of this method.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
*
- * @throws AssertionFailedException
- *
* @see https://github.com/symfony/Validator/blob/master/Constraints/UrlValidator.php
* @see https://github.com/symfony/Validator/blob/master/Constraints/Url.php
*/
- public static function url($value, $message = null, string $propertyPath = null): bool
+ public static function url($value, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
@@ -1723,19 +1616,17 @@ class Assertion
/**
* Assert that value is alphanumeric.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function alnum($value, $message = null, string $propertyPath = null): bool
+ public static function alnum($value, $message = null, $propertyPath = null)
{
try {
static::regex($value, '(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $propertyPath);
- } catch (Throwable $e) {
+ } catch (\Throwable $e) {
$message = \sprintf(
static::generateMessage($message ?: 'Value "%s" is not alphanumeric, starting with letters and containing only letters and numbers.'),
static::stringify($value)
@@ -1750,15 +1641,13 @@ class Assertion
/**
* Assert that the value is boolean True.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function true($value, $message = null, string $propertyPath = null): bool
+ public static function true($value, $message = null, $propertyPath = null)
{
if (true !== $value) {
$message = \sprintf(
@@ -1775,15 +1664,13 @@ class Assertion
/**
* Assert that the value is boolean False.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function false($value, $message = null, string $propertyPath = null): bool
+ public static function false($value, $message = null, $propertyPath = null)
{
if (false !== $value) {
$message = \sprintf(
@@ -1800,15 +1687,13 @@ class Assertion
/**
* Assert that the class exists.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function classExists($value, $message = null, string $propertyPath = null): bool
+ public static function classExists($value, $message = null, $propertyPath = null)
{
if (!\class_exists($value)) {
$message = \sprintf(
@@ -1825,15 +1710,13 @@ class Assertion
/**
* Assert that the interface exists.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function interfaceExists($value, $message = null, string $propertyPath = null): bool
+ public static function interfaceExists($value, $message = null, $propertyPath = null)
{
if (!\interface_exists($value)) {
$message = \sprintf(
@@ -1850,19 +1733,17 @@ class Assertion
/**
* Assert that the class implements the interface.
*
- * @param mixed $class
- * @param string $interfaceName
+ * @param mixed $class
+ * @param string $interfaceName
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function implementsInterface($class, $interfaceName, $message = null, string $propertyPath = null): bool
+ public static function implementsInterface($class, $interfaceName, $message = null, $propertyPath = null)
{
try {
- $reflection = new ReflectionClass($class);
+ $reflection = new \ReflectionClass($class);
if (!$reflection->implementsInterface($interfaceName)) {
$message = \sprintf(
static::generateMessage($message ?: 'Class "%s" does not implement interface "%s".'),
@@ -1872,7 +1753,7 @@ class Assertion
throw static::createException($class, $message, static::INTERFACE_NOT_IMPLEMENTED, $propertyPath, ['interface' => $interfaceName]);
}
- } catch (ReflectionException $e) {
+ } catch (\ReflectionException $e) {
$message = \sprintf(
static::generateMessage($message ?: 'Class "%s" failed reflection.'),
static::stringify($class)
@@ -1892,15 +1773,13 @@ class Assertion
* content afterwards, just to decode and check for yourself instead
* of using this assertion.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function isJsonString($value, $message = null, string $propertyPath = null): bool
+ public static function isJsonString($value, $message = null, $propertyPath = null)
{
if (null === \json_decode($value) && JSON_ERROR_NONE !== \json_last_error()) {
$message = \sprintf(
@@ -1919,15 +1798,13 @@ class Assertion
*
* Uses code from {@link https://github.com/ramsey/uuid} that is MIT licensed.
*
- * @param string $value
+ * @param string $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function uuid($value, $message = null, string $propertyPath = null): bool
+ public static function uuid($value, $message = null, $propertyPath = null)
{
$value = \str_replace(['urn:', 'uuid:', '{', '}'], '', $value);
@@ -1952,15 +1829,13 @@ class Assertion
*
* @see https://en.wikipedia.org/wiki/E.164
*
- * @param string $value
+ * @param string $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function e164($value, $message = null, string $propertyPath = null): bool
+ public static function e164($value, $message = null, $propertyPath = null)
{
if (!\preg_match('/^\+?[1-9]\d{1,14}$/', $value)) {
$message = \sprintf(
@@ -1977,16 +1852,14 @@ class Assertion
/**
* Assert that the count of countable is equal to count.
*
- * @param array|Countable|ResourceBundle|SimpleXMLElement $countable
- * @param int $count
- * @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param array|\Countable|\ResourceBundle|\SimpleXMLElement $countable
+ * @param int $count
+ * @param string|null $message
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function count($countable, $count, $message = null, string $propertyPath = null): bool
+ public static function count($countable, $count, $message = null, $propertyPath = null)
{
if ($count !== \count($countable)) {
$message = \sprintf(
@@ -2004,16 +1877,14 @@ class Assertion
/**
* Assert that the countable have at least $count elements.
*
- * @param array|Countable|ResourceBundle|SimpleXMLElement $countable
- * @param int $count
- * @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param array|\Countable|\ResourceBundle|\SimpleXMLElement $countable
+ * @param int $count
+ * @param string|null $message
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function minCount($countable, $count, $message = null, string $propertyPath = null): bool
+ public static function minCount($countable, $count, $message = null, $propertyPath = null)
{
if ($count > \count($countable)) {
$message = \sprintf(
@@ -2031,16 +1902,14 @@ class Assertion
/**
* Assert that the countable have at most $count elements.
*
- * @param array|Countable|ResourceBundle|SimpleXMLElement $countable
- * @param int $count
- * @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param array|\Countable|\ResourceBundle|\SimpleXMLElement $countable
+ * @param int $count
+ * @param string|null $message
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function maxCount($countable, $count, $message = null, string $propertyPath = null): bool
+ public static function maxCount($countable, $count, $message = null, $propertyPath = null)
{
if ($count < \count($countable)) {
$message = \sprintf(
@@ -2061,11 +1930,9 @@ class Assertion
* - "all" delegation.
*
* @param string $method
- * @param array $args
+ * @param array $args
*
* @return bool|mixed
- *
- * @throws AssertionFailedException
*/
public static function __callStatic($method, $args)
{
@@ -2107,16 +1974,14 @@ class Assertion
/**
* Determines if the values array has every choice as key and that this choice has content.
*
- * @param array $values
- * @param array $choices
+ * @param array $values
+ * @param array $choices
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function choicesNotEmpty(array $values, array $choices, $message = null, string $propertyPath = null): bool
+ public static function choicesNotEmpty(array $values, array $choices, $message = null, $propertyPath = null)
{
static::notEmpty($values, $message, $propertyPath);
@@ -2130,16 +1995,14 @@ class Assertion
/**
* Determines that the named method is defined in the provided object.
*
- * @param string $value
- * @param mixed $object
+ * @param string $value
+ * @param mixed $object
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function methodExists($value, $object, $message = null, string $propertyPath = null): bool
+ public static function methodExists($value, $object, $message = null, $propertyPath = null)
{
static::isObject($object, $message, $propertyPath);
@@ -2158,15 +2021,13 @@ class Assertion
/**
* Determines that the provided value is an object.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function isObject($value, $message = null, string $propertyPath = null): bool
+ public static function isObject($value, $message = null, $propertyPath = null)
{
if (!\is_object($value)) {
$message = \sprintf(
@@ -2183,16 +2044,14 @@ class Assertion
/**
* Determines if the value is less than given limit.
*
- * @param mixed $value
- * @param mixed $limit
+ * @param mixed $value
+ * @param mixed $limit
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function lessThan($value, $limit, $message = null, string $propertyPath = null): bool
+ public static function lessThan($value, $limit, $message = null, $propertyPath = null)
{
if ($value >= $limit) {
$message = \sprintf(
@@ -2210,16 +2069,14 @@ class Assertion
/**
* Determines if the value is less or equal than given limit.
*
- * @param mixed $value
- * @param mixed $limit
+ * @param mixed $value
+ * @param mixed $limit
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function lessOrEqualThan($value, $limit, $message = null, string $propertyPath = null): bool
+ public static function lessOrEqualThan($value, $limit, $message = null, $propertyPath = null)
{
if ($value > $limit) {
$message = \sprintf(
@@ -2237,16 +2094,14 @@ class Assertion
/**
* Determines if the value is greater than given limit.
*
- * @param mixed $value
- * @param mixed $limit
+ * @param mixed $value
+ * @param mixed $limit
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function greaterThan($value, $limit, $message = null, string $propertyPath = null): bool
+ public static function greaterThan($value, $limit, $message = null, $propertyPath = null)
{
if ($value <= $limit) {
$message = \sprintf(
@@ -2264,16 +2119,14 @@ class Assertion
/**
* Determines if the value is greater or equal than given limit.
*
- * @param mixed $value
- * @param mixed $limit
+ * @param mixed $value
+ * @param mixed $limit
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function greaterOrEqualThan($value, $limit, $message = null, string $propertyPath = null): bool
+ public static function greaterOrEqualThan($value, $limit, $message = null, $propertyPath = null)
{
if ($value < $limit) {
$message = \sprintf(
@@ -2291,17 +2144,15 @@ class Assertion
/**
* Assert that a value is greater or equal than a lower limit, and less than or equal to an upper limit.
*
- * @param mixed $value
- * @param mixed $lowerLimit
- * @param mixed $upperLimit
- * @param string|callable|null $message
+ * @param mixed $value
+ * @param mixed $lowerLimit
+ * @param mixed $upperLimit
+ * @param string $message
* @param string $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function between($value, $lowerLimit, $upperLimit, $message = null, string $propertyPath = null): bool
+ public static function between($value, $lowerLimit, $upperLimit, $message = null, $propertyPath = null)
{
if ($lowerLimit > $value || $value > $upperLimit) {
$message = \sprintf(
@@ -2320,17 +2171,15 @@ class Assertion
/**
* Assert that a value is greater than a lower limit, and less than an upper limit.
*
- * @param mixed $value
- * @param mixed $lowerLimit
- * @param mixed $upperLimit
- * @param string|callable|null $message
+ * @param mixed $value
+ * @param mixed $lowerLimit
+ * @param mixed $upperLimit
+ * @param string $message
* @param string $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function betweenExclusive($value, $lowerLimit, $upperLimit, $message = null, string $propertyPath = null): bool
+ public static function betweenExclusive($value, $lowerLimit, $upperLimit, $message = null, $propertyPath = null)
{
if ($lowerLimit >= $value || $value >= $upperLimit) {
$message = \sprintf(
@@ -2349,15 +2198,13 @@ class Assertion
/**
* Assert that extension is loaded.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function extensionLoaded($value, $message = null, string $propertyPath = null): bool
+ public static function extensionLoaded($value, $message = null, $propertyPath = null)
{
if (!\extension_loaded($value)) {
$message = \sprintf(
@@ -2374,24 +2221,22 @@ class Assertion
/**
* Assert that date is valid and corresponds to the given format.
*
- * @param string $value
- * @param string $format supports all of the options date(), except for the following:
- * N, w, W, t, L, o, B, a, A, g, h, I, O, P, Z, c, r
+ * @param string $value
+ * @param string $format supports all of the options date(), except for the following:
+ * N, w, W, t, L, o, B, a, A, g, h, I, O, P, Z, c, r
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
*
- * @throws AssertionFailedException
- *
* @see http://php.net/manual/function.date.php#refsect1-function.date-parameters
*/
- public static function date($value, $format, $message = null, string $propertyPath = null): bool
+ public static function date($value, $format, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
static::string($format, $message, $propertyPath);
- $dateTime = DateTime::createFromFormat('!'.$format, $value);
+ $dateTime = \DateTime::createFromFormat('!'.$format, $value);
if (false === $dateTime || $value !== $dateTime->format($format)) {
$message = \sprintf(
@@ -2409,15 +2254,13 @@ class Assertion
/**
* Assert that the value is an object, or a class that exists.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function objectOrClass($value, $message = null, string $propertyPath = null): bool
+ public static function objectOrClass($value, $message = null, $propertyPath = null)
{
if (!\is_object($value)) {
static::classExists($value, $message, $propertyPath);
@@ -2429,16 +2272,14 @@ class Assertion
/**
* Assert that the value is an object or class, and that the property exists.
*
- * @param mixed $value
- * @param string $property
+ * @param mixed $value
+ * @param string $property
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function propertyExists($value, $property, $message = null, string $propertyPath = null): bool
+ public static function propertyExists($value, $property, $message = null, $propertyPath = null)
{
static::objectOrClass($value);
@@ -2458,16 +2299,14 @@ class Assertion
/**
* Assert that the value is an object or class, and that the properties all exist.
*
- * @param mixed $value
- * @param array $properties
+ * @param mixed $value
+ * @param array $properties
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function propertiesExist($value, array $properties, $message = null, string $propertyPath = null): bool
+ public static function propertiesExist($value, array $properties, $message = null, $propertyPath = null)
{
static::objectOrClass($value);
static::allString($properties, $message, $propertyPath);
@@ -2495,17 +2334,15 @@ class Assertion
/**
* Assert comparison of two versions.
*
- * @param string $version1
- * @param string $operator
- * @param string $version2
+ * @param string $version1
+ * @param string $operator
+ * @param string $version2
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function version($version1, $operator, $version2, $message = null, string $propertyPath = null): bool
+ public static function version($version1, $operator, $version2, $message = null, $propertyPath = null)
{
static::notEmpty($operator, 'versionCompare operator is required and cannot be empty.');
@@ -2526,16 +2363,14 @@ class Assertion
/**
* Assert on PHP version.
*
- * @param string $operator
- * @param mixed $version
+ * @param string $operator
+ * @param mixed $version
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function phpVersion($operator, $version, $message = null, string $propertyPath = null): bool
+ public static function phpVersion($operator, $version, $message = null, $propertyPath = null)
{
static::defined('PHP_VERSION');
@@ -2545,17 +2380,15 @@ class Assertion
/**
* Assert that extension is loaded and a specific version is installed.
*
- * @param string $extension
- * @param string $operator
- * @param mixed $version
+ * @param string $extension
+ * @param string $operator
+ * @param mixed $version
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function extensionVersion($extension, $operator, $version, $message = null, string $propertyPath = null): bool
+ public static function extensionVersion($extension, $operator, $version, $message = null, $propertyPath = null)
{
static::extensionLoaded($extension, $message, $propertyPath);
@@ -2565,15 +2398,13 @@ class Assertion
/**
* Determines that the provided value is callable.
*
- * @param mixed $value
+ * @param mixed $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function isCallable($value, $message = null, string $propertyPath = null): bool
+ public static function isCallable($value, $message = null, $propertyPath = null)
{
if (!\is_callable($value)) {
$message = \sprintf(
@@ -2592,16 +2423,14 @@ class Assertion
*
* If the callback returns `false` the assertion will fail.
*
- * @param mixed $value
- * @param callable $callback
+ * @param mixed $value
+ * @param callable $callback
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function satisfy($value, $callback, $message = null, string $propertyPath = null): bool
+ public static function satisfy($value, $callback, $message = null, $propertyPath = null)
{
static::isCallable($callback);
@@ -2621,18 +2450,16 @@ class Assertion
* Assert that value is an IPv4 or IPv6 address
* (using input_filter/FILTER_VALIDATE_IP).
*
- * @param string $value
- * @param int|null $flag
+ * @param string $value
+ * @param int|null $flag
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
*
- * @throws AssertionFailedException
- *
* @see http://php.net/manual/filter.filters.flags.php
*/
- public static function ip($value, $flag = null, $message = null, string $propertyPath = null): bool
+ public static function ip($value, $flag = null, $message = null, $propertyPath = null)
{
static::string($value, $message, $propertyPath);
if (!\filter_var($value, FILTER_VALIDATE_IP, $flag)) {
@@ -2650,18 +2477,16 @@ class Assertion
* Assert that value is an IPv4 address
* (using input_filter/FILTER_VALIDATE_IP).
*
- * @param string $value
- * @param int|null $flag
+ * @param string $value
+ * @param int|null $flag
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
*
- * @throws AssertionFailedException
- *
* @see http://php.net/manual/filter.filters.flags.php
*/
- public static function ipv4($value, $flag = null, $message = null, string $propertyPath = null): bool
+ public static function ipv4($value, $flag = null, $message = null, $propertyPath = null)
{
static::ip($value, $flag | FILTER_FLAG_IPV4, static::generateMessage($message ?: 'Value "%s" was expected to be a valid IPv4 address.'), $propertyPath);
@@ -2672,18 +2497,16 @@ class Assertion
* Assert that value is an IPv6 address
* (using input_filter/FILTER_VALIDATE_IP).
*
- * @param string $value
- * @param int|null $flag
+ * @param string $value
+ * @param int|null $flag
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
*
- * @throws AssertionFailedException
- *
* @see http://php.net/manual/filter.filters.flags.php
*/
- public static function ipv6($value, $flag = null, $message = null, string $propertyPath = null): bool
+ public static function ipv6($value, $flag = null, $message = null, $propertyPath = null)
{
static::ip($value, $flag | FILTER_FLAG_IPV6, static::generateMessage($message ?: 'Value "%s" was expected to be a valid IPv6 address.'), $propertyPath);
@@ -2693,13 +2516,13 @@ class Assertion
/**
* Assert that a constant is defined.
*
- * @param mixed $constant
+ * @param mixed $constant
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
*/
- public static function defined($constant, $message = null, string $propertyPath = null): bool
+ public static function defined($constant, $message = null, $propertyPath = null)
{
if (!\defined($constant)) {
$message = \sprintf(static::generateMessage($message ?: 'Value "%s" expected to be a defined constant.'), $constant);
@@ -2713,15 +2536,13 @@ class Assertion
/**
* Assert that a constant is defined.
*
- * @param string $value
+ * @param string $value
* @param string|callable|null $message
- * @param string|null $propertyPath
+ * @param string|null $propertyPath
*
* @return bool
- *
- * @throws AssertionFailedException
*/
- public static function base64($value, $message = null, string $propertyPath = null): bool
+ public static function base64($value, $message = null, $propertyPath = null)
{
if (false === \base64_decode($value, true)) {
$message = \sprintf(static::generateMessage($message ?: 'Value "%s" is not a valid base64 string.'), $value);
@@ -2737,11 +2558,11 @@ class Assertion
* They are returned from this method so that the stack trace still shows
* the assertions method.
*
- * @param mixed $value
- * @param string|callable|null $message
- * @param int $code
- * @param string|null $propertyPath
- * @param array $constraints
+ * @param mixed $value
+ * @param string|callable $message
+ * @param int $code
+ * @param string|null $propertyPath
+ * @param array $constraints
*
* @return mixed
*/
@@ -2759,17 +2580,17 @@ class Assertion
*
* @return string
*/
- protected static function stringify($value): string
+ protected static function stringify($value)
{
$result = \gettype($value);
if (\is_bool($value)) {
$result = $value ? '<TRUE>' : '<FALSE>';
} elseif (\is_scalar($value)) {
- $val = (string)$value;
+ $val = (string) $value;
- if (\mb_strlen($val) > 100) {
- $val = \mb_substr($val, 0, 97).'...';
+ if (\strlen($val) > 100) {
+ $val = \substr($val, 0, 97).'...';
}
$result = $val;
@@ -2789,7 +2610,7 @@ class Assertion
/**
* Generate the message.
*
- * @param string|callable|null $message
+ * @param string|callable $message
*
* @return string
*/
@@ -2801,7 +2622,7 @@ class Assertion
$parameters = [];
try {
- $reflection = new ReflectionClass($traces[1]['class']);
+ $reflection = new \ReflectionClass($traces[1]['class']);
$method = $reflection->getMethod($traces[1]['function']);
foreach ($method->getParameters() as $index => $parameter) {
if ('message' !== $parameter->getName()) {
@@ -2815,11 +2636,11 @@ class Assertion
$message = \call_user_func_array($message, [$parameters]);
} // @codeCoverageIgnoreStart
- catch (Throwable $exception) {
+ catch (\Throwable $exception) {
$message = \sprintf('Unable to generate message : %s', $exception->getMessage());
} // @codeCoverageIgnoreEnd
}
- return (string)$message;
+ return (string) $message;
}
}
diff --git a/vendor/beberlei/assert/lib/Assert/AssertionChain.php b/vendor/beberlei/assert/lib/Assert/AssertionChain.php
index dbb6e839b..4d3ca1c01 100644
--- a/vendor/beberlei/assert/lib/Assert/AssertionChain.php
+++ b/vendor/beberlei/assert/lib/Assert/AssertionChain.php
@@ -24,15 +24,15 @@ use ReflectionClass;
*
* @method AssertionChain alnum(string|callable $message = null, string $propertyPath = null) Assert that value is alphanumeric.
* @method AssertionChain base64(string|callable $message = null, string $propertyPath = null) Assert that a constant is defined.
- * @method AssertionChain between(mixed $lowerLimit, mixed $upperLimit, string|callable $message = null, string $propertyPath = null) Assert that a value is greater or equal than a lower limit, and less than or equal to an upper limit.
- * @method AssertionChain betweenExclusive(mixed $lowerLimit, mixed $upperLimit, string|callable $message = null, string $propertyPath = null) Assert that a value is greater than a lower limit, and less than an upper limit.
+ * @method AssertionChain between(mixed $lowerLimit, mixed $upperLimit, string $message = null, string $propertyPath = null) Assert that a value is greater or equal than a lower limit, and less than or equal to an upper limit.
+ * @method AssertionChain betweenExclusive(mixed $lowerLimit, mixed $upperLimit, string $message = null, string $propertyPath = null) Assert that a value is greater than a lower limit, and less than an upper limit.
* @method AssertionChain betweenLength(int $minLength, int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string length is between min and max lengths.
* @method AssertionChain boolean(string|callable $message = null, string $propertyPath = null) Assert that value is php boolean.
* @method AssertionChain choice(array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is in array of choices.
* @method AssertionChain choicesNotEmpty(array $choices, string|callable $message = null, string $propertyPath = null) Determines if the values array has every choice as key and that this choice has content.
* @method AssertionChain classExists(string|callable $message = null, string $propertyPath = null) Assert that the class exists.
* @method AssertionChain contains(string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string contains a sequence of chars.
- * @method AssertionChain count(int $count, string|callable $message = null, string $propertyPath = null) Assert that the count of countable is equal to count.
+ * @method AssertionChain count(int $count, string $message = null, string $propertyPath = null) Assert that the count of countable is equal to count.
* @method AssertionChain date(string $format, string|callable $message = null, string $propertyPath = null) Assert that date is valid and corresponds to the given format.
* @method AssertionChain defined(string|callable $message = null, string $propertyPath = null) Assert that a constant is defined.
* @method AssertionChain digit(string|callable $message = null, string $propertyPath = null) Validates if an integer or integerish is a digit.
@@ -73,23 +73,23 @@ use ReflectionClass;
* @method AssertionChain lessOrEqualThan(mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less or equal than given limit.
* @method AssertionChain lessThan(mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less than given limit.
* @method AssertionChain max(mixed $maxValue, string|callable $message = null, string $propertyPath = null) Assert that a number is smaller as a given limit.
- * @method AssertionChain maxCount(int $count, string|callable $message = null, string $propertyPath = null) Assert that the countable have at most $count elements.
+ * @method AssertionChain maxCount(int $count, string $message = null, string $propertyPath = null) Assert that the countable have at most $count elements.
* @method AssertionChain maxLength(int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string value is not longer than $maxLength chars.
* @method AssertionChain methodExists(mixed $object, string|callable $message = null, string $propertyPath = null) Determines that the named method is defined in the provided object.
* @method AssertionChain min(mixed $minValue, string|callable $message = null, string $propertyPath = null) Assert that a value is at least as big as a given limit.
- * @method AssertionChain minCount(int $count, string|callable $message = null, string $propertyPath = null) Assert that the countable have at least $count elements.
+ * @method AssertionChain minCount(int $count, string $message = null, string $propertyPath = null) Assert that the countable have at least $count elements.
* @method AssertionChain minLength(int $minLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that a string is at least $minLength chars long.
* @method AssertionChain noContent(string|callable $message = null, string $propertyPath = null) Assert that value is empty.
* @method AssertionChain notBlank(string|callable $message = null, string $propertyPath = null) Assert that value is not blank.
* @method AssertionChain notContains(string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string does not contains a sequence of chars.
* @method AssertionChain notEmpty(string|callable $message = null, string $propertyPath = null) Assert that value is not empty.
* @method AssertionChain notEmptyKey(string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array/array-accessible object and its value is not empty.
- * @method AssertionChain notEq(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not equal (using ==).
+ * @method AssertionChain notEq(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not equal (using == ).
* @method AssertionChain notInArray(array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is not in array of choices.
* @method AssertionChain notIsInstanceOf(string $className, string|callable $message = null, string $propertyPath = null) Assert that value is not instance of given class-name.
* @method AssertionChain notNull(string|callable $message = null, string $propertyPath = null) Assert that value is not null.
* @method AssertionChain notRegex(string $pattern, string|callable $message = null, string $propertyPath = null) Assert that value does not match a regex.
- * @method AssertionChain notSame(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not the same (using ===).
+ * @method AssertionChain notSame(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not the same (using === ).
* @method AssertionChain null(string|callable $message = null, string $propertyPath = null) Assert that value is null.
* @method AssertionChain numeric(string|callable $message = null, string $propertyPath = null) Assert that value is numeric.
* @method AssertionChain objectOrClass(string|callable $message = null, string $propertyPath = null) Assert that the value is an object, or a class that exists.
@@ -113,19 +113,8 @@ use ReflectionClass;
*/
class AssertionChain
{
- /**
- * @var mixed
- */
private $value;
-
- /**
- * @var string|callable|null
- */
private $defaultMessage;
-
- /**
- * @var string|null
- */
private $defaultPropertyPath;
/**
@@ -145,14 +134,7 @@ class AssertionChain
/** @var string|Assertion Class to use for assertion calls */
private $assertionClassName = 'Assert\Assertion';
- /**
- * AssertionChain constructor.
- *
- * @param mixed $value
- * @param string|callable|null $defaultMessage
- * @param string|null $defaultPropertyPath
- */
- public function __construct($value, $defaultMessage = null, string $defaultPropertyPath = null)
+ public function __construct($value, $defaultMessage = null, $defaultPropertyPath = null)
{
$this->value = $value;
$this->defaultMessage = $defaultMessage;
@@ -163,11 +145,11 @@ class AssertionChain
* Call assertion on the current value in the chain.
*
* @param string $methodName
- * @param array $args
+ * @param array $args
*
- * @return AssertionChain
+ * @return \Assert\AssertionChain
*/
- public function __call($methodName, $args): AssertionChain
+ public function __call($methodName, $args)
{
if (true === $this->alwaysValid) {
return $this;
@@ -209,9 +191,9 @@ class AssertionChain
/**
* Switch chain into validation mode for an array of values.
*
- * @return AssertionChain
+ * @return \Assert\AssertionChain
*/
- public function all(): AssertionChain
+ public function all()
{
$this->all = true;
@@ -221,9 +203,9 @@ class AssertionChain
/**
* Switch chain into mode allowing nulls, ignoring further assertions.
*
- * @return AssertionChain
+ * @return \Assert\AssertionChain
*/
- public function nullOr(): AssertionChain
+ public function nullOr()
{
if (null === $this->value) {
$this->alwaysValid = true;
@@ -237,7 +219,7 @@ class AssertionChain
*
* @return $this
*/
- public function setAssertionClassName($className): AssertionChain
+ public function setAssertionClassName($className)
{
if (!\is_string($className)) {
throw new LogicException('Exception class name must be passed as a string');
diff --git a/vendor/beberlei/assert/lib/Assert/AssertionFailedException.php b/vendor/beberlei/assert/lib/Assert/AssertionFailedException.php
index c18483884..e895aa8e5 100644
--- a/vendor/beberlei/assert/lib/Assert/AssertionFailedException.php
+++ b/vendor/beberlei/assert/lib/Assert/AssertionFailedException.php
@@ -18,18 +18,9 @@ use Throwable;
interface AssertionFailedException extends Throwable
{
- /**
- * @return string|null
- */
public function getPropertyPath();
- /**
- * @return mixed
- */
public function getValue();
- /**
- * @return array
- */
- public function getConstraints(): array;
+ public function getConstraints();
}
diff --git a/vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php b/vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php
index acd966544..20c890992 100644
--- a/vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php
+++ b/vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php
@@ -16,22 +16,11 @@ namespace Assert;
class InvalidArgumentException extends \InvalidArgumentException implements AssertionFailedException
{
- /**
- * @var string|null
- */
private $propertyPath;
-
- /**
- * @var mixed
- */
private $value;
-
- /**
- * @var array
- */
private $constraints;
- public function __construct($message, $code, string $propertyPath = null, $value = null, array $constraints = [])
+ public function __construct($message, $code, $propertyPath, $value, array $constraints = [])
{
parent::__construct($message, $code);
@@ -47,7 +36,7 @@ class InvalidArgumentException extends \InvalidArgumentException implements Asse
* Useful to transport information about the nature of the error
* back to higher layers.
*
- * @return string|null
+ * @return string
*/
public function getPropertyPath()
{
@@ -69,7 +58,7 @@ class InvalidArgumentException extends \InvalidArgumentException implements Asse
*
* @return array
*/
- public function getConstraints(): array
+ public function getConstraints()
{
return $this->constraints;
}
diff --git a/vendor/beberlei/assert/lib/Assert/LazyAssertion.php b/vendor/beberlei/assert/lib/Assert/LazyAssertion.php
index 6ccd64236..abbaf4bcb 100644
--- a/vendor/beberlei/assert/lib/Assert/LazyAssertion.php
+++ b/vendor/beberlei/assert/lib/Assert/LazyAssertion.php
@@ -21,96 +21,96 @@ use LogicException;
*
* @author Benjamin Eberlei <[email protected]>
*
- * @method LazyAssertion alnum(string|callable $message = null, string $propertyPath = null) Assert that value is alphanumeric.
- * @method LazyAssertion base64(string|callable $message = null, string $propertyPath = null) Assert that a constant is defined.
- * @method LazyAssertion between(mixed $lowerLimit, mixed $upperLimit, string|callable $message = null, string $propertyPath = null) Assert that a value is greater or equal than a lower limit, and less than or equal to an upper limit.
- * @method LazyAssertion betweenExclusive(mixed $lowerLimit, mixed $upperLimit, string|callable $message = null, string $propertyPath = null) Assert that a value is greater than a lower limit, and less than an upper limit.
- * @method LazyAssertion betweenLength(int $minLength, int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string length is between min and max lengths.
- * @method LazyAssertion boolean(string|callable $message = null, string $propertyPath = null) Assert that value is php boolean.
- * @method LazyAssertion choice(array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is in array of choices.
- * @method LazyAssertion choicesNotEmpty(array $choices, string|callable $message = null, string $propertyPath = null) Determines if the values array has every choice as key and that this choice has content.
- * @method LazyAssertion classExists(string|callable $message = null, string $propertyPath = null) Assert that the class exists.
- * @method LazyAssertion contains(string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string contains a sequence of chars.
- * @method LazyAssertion count(int $count, string|callable $message = null, string $propertyPath = null) Assert that the count of countable is equal to count.
- * @method LazyAssertion date(string $format, string|callable $message = null, string $propertyPath = null) Assert that date is valid and corresponds to the given format.
- * @method LazyAssertion defined(string|callable $message = null, string $propertyPath = null) Assert that a constant is defined.
- * @method LazyAssertion digit(string|callable $message = null, string $propertyPath = null) Validates if an integer or integerish is a digit.
- * @method LazyAssertion directory(string|callable $message = null, string $propertyPath = null) Assert that a directory exists.
- * @method LazyAssertion e164(string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid E164 Phone Number.
- * @method LazyAssertion email(string|callable $message = null, string $propertyPath = null) Assert that value is an email address (using input_filter/FILTER_VALIDATE_EMAIL).
- * @method LazyAssertion endsWith(string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string ends with a sequence of chars.
- * @method LazyAssertion eq(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are equal (using ==).
- * @method LazyAssertion eqArraySubset(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that the array contains the subset.
- * @method LazyAssertion extensionLoaded(string|callable $message = null, string $propertyPath = null) Assert that extension is loaded.
- * @method LazyAssertion extensionVersion(string $operator, mixed $version, string|callable $message = null, string $propertyPath = null) Assert that extension is loaded and a specific version is installed.
- * @method LazyAssertion false(string|callable $message = null, string $propertyPath = null) Assert that the value is boolean False.
- * @method LazyAssertion file(string|callable $message = null, string $propertyPath = null) Assert that a file exists.
- * @method LazyAssertion float(string|callable $message = null, string $propertyPath = null) Assert that value is a php float.
- * @method LazyAssertion greaterOrEqualThan(mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is greater or equal than given limit.
- * @method LazyAssertion greaterThan(mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is greater than given limit.
- * @method LazyAssertion implementsInterface(string $interfaceName, string|callable $message = null, string $propertyPath = null) Assert that the class implements the interface.
- * @method LazyAssertion inArray(array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is in array of choices. This is an alias of Assertion::choice().
- * @method LazyAssertion integer(string|callable $message = null, string $propertyPath = null) Assert that value is a php integer.
- * @method LazyAssertion integerish(string|callable $message = null, string $propertyPath = null) Assert that value is a php integer'ish.
- * @method LazyAssertion interfaceExists(string|callable $message = null, string $propertyPath = null) Assert that the interface exists.
- * @method LazyAssertion ip(int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv4 or IPv6 address.
- * @method LazyAssertion ipv4(int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv4 address.
- * @method LazyAssertion ipv6(int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv6 address.
- * @method LazyAssertion isArray(string|callable $message = null, string $propertyPath = null) Assert that value is an array.
- * @method LazyAssertion isArrayAccessible(string|callable $message = null, string $propertyPath = null) Assert that value is an array or an array-accessible object.
- * @method LazyAssertion isCallable(string|callable $message = null, string $propertyPath = null) Determines that the provided value is callable.
- * @method LazyAssertion isCountable(string|callable $message = null, string $propertyPath = null) Assert that value is countable.
- * @method LazyAssertion isInstanceOf(string $className, string|callable $message = null, string $propertyPath = null) Assert that value is instance of given class-name.
- * @method LazyAssertion isJsonString(string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid json string.
- * @method LazyAssertion isObject(string|callable $message = null, string $propertyPath = null) Determines that the provided value is an object.
- * @method LazyAssertion isResource(string|callable $message = null, string $propertyPath = null) Assert that value is a resource.
- * @method LazyAssertion isTraversable(string|callable $message = null, string $propertyPath = null) Assert that value is an array or a traversable object.
- * @method LazyAssertion keyExists(string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array.
- * @method LazyAssertion keyIsset(string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array/array-accessible object using isset().
- * @method LazyAssertion keyNotExists(string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key does not exist in an array.
- * @method LazyAssertion length(int $length, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string has a given length.
- * @method LazyAssertion lessOrEqualThan(mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less or equal than given limit.
- * @method LazyAssertion lessThan(mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less than given limit.
- * @method LazyAssertion max(mixed $maxValue, string|callable $message = null, string $propertyPath = null) Assert that a number is smaller as a given limit.
- * @method LazyAssertion maxCount(int $count, string|callable $message = null, string $propertyPath = null) Assert that the countable have at most $count elements.
- * @method LazyAssertion maxLength(int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string value is not longer than $maxLength chars.
- * @method LazyAssertion methodExists(mixed $object, string|callable $message = null, string $propertyPath = null) Determines that the named method is defined in the provided object.
- * @method LazyAssertion min(mixed $minValue, string|callable $message = null, string $propertyPath = null) Assert that a value is at least as big as a given limit.
- * @method LazyAssertion minCount(int $count, string|callable $message = null, string $propertyPath = null) Assert that the countable have at least $count elements.
- * @method LazyAssertion minLength(int $minLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that a string is at least $minLength chars long.
- * @method LazyAssertion noContent(string|callable $message = null, string $propertyPath = null) Assert that value is empty.
- * @method LazyAssertion notBlank(string|callable $message = null, string $propertyPath = null) Assert that value is not blank.
- * @method LazyAssertion notContains(string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string does not contains a sequence of chars.
- * @method LazyAssertion notEmpty(string|callable $message = null, string $propertyPath = null) Assert that value is not empty.
- * @method LazyAssertion notEmptyKey(string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array/array-accessible object and its value is not empty.
- * @method LazyAssertion notEq(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not equal (using ==).
- * @method LazyAssertion notInArray(array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is not in array of choices.
- * @method LazyAssertion notIsInstanceOf(string $className, string|callable $message = null, string $propertyPath = null) Assert that value is not instance of given class-name.
- * @method LazyAssertion notNull(string|callable $message = null, string $propertyPath = null) Assert that value is not null.
- * @method LazyAssertion notRegex(string $pattern, string|callable $message = null, string $propertyPath = null) Assert that value does not match a regex.
- * @method LazyAssertion notSame(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not the same (using ===).
- * @method LazyAssertion null(string|callable $message = null, string $propertyPath = null) Assert that value is null.
- * @method LazyAssertion numeric(string|callable $message = null, string $propertyPath = null) Assert that value is numeric.
- * @method LazyAssertion objectOrClass(string|callable $message = null, string $propertyPath = null) Assert that the value is an object, or a class that exists.
- * @method LazyAssertion phpVersion(mixed $version, string|callable $message = null, string $propertyPath = null) Assert on PHP version.
- * @method LazyAssertion propertiesExist(array $properties, string|callable $message = null, string $propertyPath = null) Assert that the value is an object or class, and that the properties all exist.
- * @method LazyAssertion propertyExists(string $property, string|callable $message = null, string $propertyPath = null) Assert that the value is an object or class, and that the property exists.
- * @method LazyAssertion range(mixed $minValue, mixed $maxValue, string|callable $message = null, string $propertyPath = null) Assert that value is in range of numbers.
- * @method LazyAssertion readable(string|callable $message = null, string $propertyPath = null) Assert that the value is something readable.
- * @method LazyAssertion regex(string $pattern, string|callable $message = null, string $propertyPath = null) Assert that value matches a regex.
- * @method LazyAssertion same(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are the same (using ===).
- * @method LazyAssertion satisfy(callable $callback, string|callable $message = null, string $propertyPath = null) Assert that the provided value is valid according to a callback.
- * @method LazyAssertion scalar(string|callable $message = null, string $propertyPath = null) Assert that value is a PHP scalar.
- * @method LazyAssertion startsWith(string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string starts with a sequence of chars.
- * @method LazyAssertion string(string|callable $message = null, string $propertyPath = null) Assert that value is a string.
- * @method LazyAssertion subclassOf(string $className, string|callable $message = null, string $propertyPath = null) Assert that value is subclass of given class-name.
- * @method LazyAssertion true(string|callable $message = null, string $propertyPath = null) Assert that the value is boolean True.
- * @method LazyAssertion url(string|callable $message = null, string $propertyPath = null) Assert that value is an URL.
- * @method LazyAssertion uuid(string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid UUID.
- * @method LazyAssertion version(string $operator, string $version2, string|callable $message = null, string $propertyPath = null) Assert comparison of two versions.
- * @method LazyAssertion writeable(string|callable $message = null, string $propertyPath = null) Assert that the value is something writeable.
- * @method LazyAssertion all() Switch chain into validation mode for an array of values.
- * @method LazyAssertion nullOr() Switch chain into mode allowing nulls, ignoring further assertions.
+ * @method $this alnum(string|callable $message = null, string $propertyPath = null) Assert that value is alphanumeric.
+ * @method $this base64(string|callable $message = null, string $propertyPath = null) Assert that a constant is defined.
+ * @method $this between(mixed $lowerLimit, mixed $upperLimit, string $message = null, string $propertyPath = null) Assert that a value is greater or equal than a lower limit, and less than or equal to an upper limit.
+ * @method $this betweenExclusive(mixed $lowerLimit, mixed $upperLimit, string $message = null, string $propertyPath = null) Assert that a value is greater than a lower limit, and less than an upper limit.
+ * @method $this betweenLength(int $minLength, int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string length is between min and max lengths.
+ * @method $this boolean(string|callable $message = null, string $propertyPath = null) Assert that value is php boolean.
+ * @method $this choice(array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is in array of choices.
+ * @method $this choicesNotEmpty(array $choices, string|callable $message = null, string $propertyPath = null) Determines if the values array has every choice as key and that this choice has content.
+ * @method $this classExists(string|callable $message = null, string $propertyPath = null) Assert that the class exists.
+ * @method $this contains(string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string contains a sequence of chars.
+ * @method $this count(int $count, string $message = null, string $propertyPath = null) Assert that the count of countable is equal to count.
+ * @method $this date(string $format, string|callable $message = null, string $propertyPath = null) Assert that date is valid and corresponds to the given format.
+ * @method $this defined(string|callable $message = null, string $propertyPath = null) Assert that a constant is defined.
+ * @method $this digit(string|callable $message = null, string $propertyPath = null) Validates if an integer or integerish is a digit.
+ * @method $this directory(string|callable $message = null, string $propertyPath = null) Assert that a directory exists.
+ * @method $this e164(string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid E164 Phone Number.
+ * @method $this email(string|callable $message = null, string $propertyPath = null) Assert that value is an email address (using input_filter/FILTER_VALIDATE_EMAIL).
+ * @method $this endsWith(string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string ends with a sequence of chars.
+ * @method $this eq(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are equal (using ==).
+ * @method $this eqArraySubset(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that the array contains the subset.
+ * @method $this extensionLoaded(string|callable $message = null, string $propertyPath = null) Assert that extension is loaded.
+ * @method $this extensionVersion(string $operator, mixed $version, string|callable $message = null, string $propertyPath = null) Assert that extension is loaded and a specific version is installed.
+ * @method $this false(string|callable $message = null, string $propertyPath = null) Assert that the value is boolean False.
+ * @method $this file(string|callable $message = null, string $propertyPath = null) Assert that a file exists.
+ * @method $this float(string|callable $message = null, string $propertyPath = null) Assert that value is a php float.
+ * @method $this greaterOrEqualThan(mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is greater or equal than given limit.
+ * @method $this greaterThan(mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is greater than given limit.
+ * @method $this implementsInterface(string $interfaceName, string|callable $message = null, string $propertyPath = null) Assert that the class implements the interface.
+ * @method $this inArray(array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is in array of choices. This is an alias of Assertion::choice().
+ * @method $this integer(string|callable $message = null, string $propertyPath = null) Assert that value is a php integer.
+ * @method $this integerish(string|callable $message = null, string $propertyPath = null) Assert that value is a php integer'ish.
+ * @method $this interfaceExists(string|callable $message = null, string $propertyPath = null) Assert that the interface exists.
+ * @method $this ip(int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv4 or IPv6 address.
+ * @method $this ipv4(int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv4 address.
+ * @method $this ipv6(int $flag = null, string|callable $message = null, string $propertyPath = null) Assert that value is an IPv6 address.
+ * @method $this isArray(string|callable $message = null, string $propertyPath = null) Assert that value is an array.
+ * @method $this isArrayAccessible(string|callable $message = null, string $propertyPath = null) Assert that value is an array or an array-accessible object.
+ * @method $this isCallable(string|callable $message = null, string $propertyPath = null) Determines that the provided value is callable.
+ * @method $this isCountable(string|callable $message = null, string $propertyPath = null) Assert that value is countable.
+ * @method $this isInstanceOf(string $className, string|callable $message = null, string $propertyPath = null) Assert that value is instance of given class-name.
+ * @method $this isJsonString(string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid json string.
+ * @method $this isObject(string|callable $message = null, string $propertyPath = null) Determines that the provided value is an object.
+ * @method $this isResource(string|callable $message = null, string $propertyPath = null) Assert that value is a resource.
+ * @method $this isTraversable(string|callable $message = null, string $propertyPath = null) Assert that value is an array or a traversable object.
+ * @method $this keyExists(string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array.
+ * @method $this keyIsset(string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array/array-accessible object using isset().
+ * @method $this keyNotExists(string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key does not exist in an array.
+ * @method $this length(int $length, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string has a given length.
+ * @method $this lessOrEqualThan(mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less or equal than given limit.
+ * @method $this lessThan(mixed $limit, string|callable $message = null, string $propertyPath = null) Determines if the value is less than given limit.
+ * @method $this max(mixed $maxValue, string|callable $message = null, string $propertyPath = null) Assert that a number is smaller as a given limit.
+ * @method $this maxCount(int $count, string $message = null, string $propertyPath = null) Assert that the countable have at most $count elements.
+ * @method $this maxLength(int $maxLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string value is not longer than $maxLength chars.
+ * @method $this methodExists(mixed $object, string|callable $message = null, string $propertyPath = null) Determines that the named method is defined in the provided object.
+ * @method $this min(mixed $minValue, string|callable $message = null, string $propertyPath = null) Assert that a value is at least as big as a given limit.
+ * @method $this minCount(int $count, string $message = null, string $propertyPath = null) Assert that the countable have at least $count elements.
+ * @method $this minLength(int $minLength, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that a string is at least $minLength chars long.
+ * @method $this noContent(string|callable $message = null, string $propertyPath = null) Assert that value is empty.
+ * @method $this notBlank(string|callable $message = null, string $propertyPath = null) Assert that value is not blank.
+ * @method $this notContains(string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string does not contains a sequence of chars.
+ * @method $this notEmpty(string|callable $message = null, string $propertyPath = null) Assert that value is not empty.
+ * @method $this notEmptyKey(string|int $key, string|callable $message = null, string $propertyPath = null) Assert that key exists in an array/array-accessible object and its value is not empty.
+ * @method $this notEq(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not equal (using == ).
+ * @method $this notInArray(array $choices, string|callable $message = null, string $propertyPath = null) Assert that value is not in array of choices.
+ * @method $this notIsInstanceOf(string $className, string|callable $message = null, string $propertyPath = null) Assert that value is not instance of given class-name.
+ * @method $this notNull(string|callable $message = null, string $propertyPath = null) Assert that value is not null.
+ * @method $this notRegex(string $pattern, string|callable $message = null, string $propertyPath = null) Assert that value does not match a regex.
+ * @method $this notSame(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are not the same (using === ).
+ * @method $this null(string|callable $message = null, string $propertyPath = null) Assert that value is null.
+ * @method $this numeric(string|callable $message = null, string $propertyPath = null) Assert that value is numeric.
+ * @method $this objectOrClass(string|callable $message = null, string $propertyPath = null) Assert that the value is an object, or a class that exists.
+ * @method $this phpVersion(mixed $version, string|callable $message = null, string $propertyPath = null) Assert on PHP version.
+ * @method $this propertiesExist(array $properties, string|callable $message = null, string $propertyPath = null) Assert that the value is an object or class, and that the properties all exist.
+ * @method $this propertyExists(string $property, string|callable $message = null, string $propertyPath = null) Assert that the value is an object or class, and that the property exists.
+ * @method $this range(mixed $minValue, mixed $maxValue, string|callable $message = null, string $propertyPath = null) Assert that value is in range of numbers.
+ * @method $this readable(string|callable $message = null, string $propertyPath = null) Assert that the value is something readable.
+ * @method $this regex(string $pattern, string|callable $message = null, string $propertyPath = null) Assert that value matches a regex.
+ * @method $this same(mixed $value2, string|callable $message = null, string $propertyPath = null) Assert that two values are the same (using ===).
+ * @method $this satisfy(callable $callback, string|callable $message = null, string $propertyPath = null) Assert that the provided value is valid according to a callback.
+ * @method $this scalar(string|callable $message = null, string $propertyPath = null) Assert that value is a PHP scalar.
+ * @method $this startsWith(string $needle, string|callable $message = null, string $propertyPath = null, string $encoding = 'utf8') Assert that string starts with a sequence of chars.
+ * @method $this string(string|callable $message = null, string $propertyPath = null) Assert that value is a string.
+ * @method $this subclassOf(string $className, string|callable $message = null, string $propertyPath = null) Assert that value is subclass of given class-name.
+ * @method $this true(string|callable $message = null, string $propertyPath = null) Assert that the value is boolean True.
+ * @method $this url(string|callable $message = null, string $propertyPath = null) Assert that value is an URL.
+ * @method $this uuid(string|callable $message = null, string $propertyPath = null) Assert that the given string is a valid UUID.
+ * @method $this version(string $operator, string $version2, string|callable $message = null, string $propertyPath = null) Assert comparison of two versions.
+ * @method $this writeable(string|callable $message = null, string $propertyPath = null) Assert that the value is something writeable.
+ * @method $this all() Switch chain into validation mode for an array of values.
+ * @method $this nullOr() Switch chain into mode allowing nulls, ignoring further assertions.
*/
class LazyAssertion
{
@@ -127,13 +127,9 @@ class LazyAssertion
private $exceptionClass = LazyAssertionException::class;
/**
- * @param mixed $value
- * @param string|null $propertyPath
- * @param string|callable|null $defaultMessage
- *
- * @return static
+ * @return $this
*/
- public function that($value, string $propertyPath = null, $defaultMessage = null)
+ public function that($value, $propertyPath, $defaultMessage = null)
{
$this->currentChainFailed = false;
$this->thisChainTryAll = false;
@@ -144,7 +140,7 @@ class LazyAssertion
}
/**
- * @return static
+ * @return $this
*/
public function tryAll()
{
@@ -157,12 +153,6 @@ class LazyAssertion
return $this;
}
- /**
- * @param string $method
- * @param array $args
- *
- * @return static
- */
public function __call($method, $args)
{
if (false === $this->alwaysTryAll
@@ -183,11 +173,11 @@ class LazyAssertion
}
/**
- * @return bool
- *
* @throws LazyAssertionException
+ *
+ * @return bool
*/
- public function verifyNow(): bool
+ public function verifyNow()
{
if ($this->errors) {
throw \call_user_func([$this->exceptionClass, 'fromErrors'], $this->errors);
@@ -199,12 +189,12 @@ class LazyAssertion
/**
* @param string $className
*
- * @return static
+ * @return $this
*/
public function setAssertClass(string $className)
{
if (Assert::class !== $className && !\is_subclass_of($className, Assert::class)) {
- throw new LogicException($className.' is not (a subclass of) '.Assert::class);
+ throw new LogicException($className.' is not (a subclass of) '. Assert::class);
}
$this->assertClass = $className;
@@ -215,7 +205,7 @@ class LazyAssertion
/**
* @param string $className
*
- * @return static
+ * @return $this
*/
public function setExceptionClass(string $className)
{
diff --git a/vendor/beberlei/assert/lib/Assert/LazyAssertionException.php b/vendor/beberlei/assert/lib/Assert/LazyAssertionException.php
index f76ecc699..0a834c1cb 100644
--- a/vendor/beberlei/assert/lib/Assert/LazyAssertionException.php
+++ b/vendor/beberlei/assert/lib/Assert/LazyAssertionException.php
@@ -26,7 +26,7 @@ class LazyAssertionException extends InvalidArgumentException
*
* @return self
*/
- public static function fromErrors(array $errors): self
+ public static function fromErrors(array $errors)
{
$message = \sprintf('The following %d assertions failed:', \count($errors))."\n";
@@ -45,10 +45,7 @@ class LazyAssertionException extends InvalidArgumentException
$this->errors = $errors;
}
- /**
- * @return InvalidArgumentException[]
- */
- public function getErrorExceptions(): array
+ public function getErrorExceptions()
{
return $this->errors;
}
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();
}
diff --git a/vendor/beberlei/assert/phpstan-code.neon b/vendor/beberlei/assert/phpstan-code.neon
index 49aa5723f..630379dbe 100644
--- a/vendor/beberlei/assert/phpstan-code.neon
+++ b/vendor/beberlei/assert/phpstan-code.neon
@@ -1,10 +1,3 @@
parameters:
autoload_files:
- bin/MethodDocGenerator.php
- ignoreErrors:
- # is_countable() is available only in PHP 7.3+
- - '#Function is_countable not found#'
-
- # Calling count() on ResourceBundle and SimpleXMLElement is valid from PHP 7.0+, but does not correctly advertise
- # the fact, and so PHPStan has an issue with this. This will be fixed in PHP 7.4+
- - '#Call to function count\(\) with argument type array|Countable|ResourceBundle|SimpleXMLElement will always result in number 1#'
diff --git a/vendor/chillerlan/php-qrcode/.github/workflows/tests.yml b/vendor/chillerlan/php-qrcode/.github/workflows/tests.yml
index 5dd343abd..991e6503c 100644
--- a/vendor/chillerlan/php-qrcode/.github/workflows/tests.yml
+++ b/vendor/chillerlan/php-qrcode/.github/workflows/tests.yml
@@ -1,5 +1,4 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
-# https://github.com/localheinz/php-library-template/blob/master/.github/workflows/continuous-integration.yml
# https://github.com/sebastianbergmann/phpunit/blob/master/.github/workflows/ci.yml
on:
@@ -10,46 +9,69 @@ name: "Continuous Integration"
jobs:
- tests:
- name: "Unit Tests"
+ static-code-analysis:
+ name: "Static Code Analysis"
+
runs-on: ubuntu-latest
- strategy:
- matrix:
- php-binary:
- - php7.2
- - php7.3
- - php7.4
+ env:
+ PHAN_ALLOW_XDEBUG: 0
+ PHAN_DISABLE_XDEBUG_WARN: 1
steps:
- name: "Checkout"
- uses: actions/[email protected]
+ uses: actions/checkout@v2
- - name: "Install dependencies with composer"
- run: ${{ matrix.php-binary }} $(which composer) update --no-interaction --no-progress --no-suggest
+ - name: "Install PHP"
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: "7.4"
+ coverage: none
+ tools: pecl
+ extensions: ast, gd, imagick, json, mbstring
- - name: "Run unit tests with phpunit"
- run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration=phpunit.xml --no-coverage
+ - name: "Update dependencies with composer"
+ run: composer update --no-interaction --no-ansi --no-progress --no-suggest
+ - name: "Run phan"
+ run: php vendor/bin/phan
- code-coverage:
- name: "Code Coverage"
- runs-on: ubuntu-latest
+ tests:
+ name: "Unit Tests"
+
+ runs-on: ${{ matrix.os }}
+
+ strategy:
+ fail-fast: false
+ matrix:
+ os:
+ - ubuntu-latest
+# - windows-latest
+ php-version:
+ - "7.2"
+ - "7.3"
+ - "7.4"
+ - "8.0"
steps:
- name: "Checkout"
- uses: actions/[email protected]
+ uses: actions/checkout@v2
- - name: "Install locked dependencies with composer"
- run: php7.4 $(which composer) install --no-interaction --no-progress --no-suggest
+ - name: "Install PHP with extensions"
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php-version }}
+ coverage: pcov
+ tools: pecl
+ extensions: gd, imagick, json, mbstring
- - name: "Dump Xdebug filter with phpunit/phpunit"
- run: php7.4 vendor/bin/phpunit --configuration=phpunit.xml --dump-xdebug-filter=.build/phpunit/xdebug-filter.php
+ - name: "Install dependencies with composer"
+ run: composer update --no-ansi --no-interaction --no-progress --no-suggest
- - name: "Collect code coverage with Xdebug and phpunit/phpunit"
- run: php7.4 vendor/bin/phpunit --configuration=phpunit.xml --prepend=.build/phpunit/xdebug-filter.php
+ - name: "Run tests with phpunit"
+ run: php vendor/phpunit/phpunit/phpunit --configuration=phpunit.xml
- name: "Send code coverage report to Codecov.io"
- env:
- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- run: bash <(curl -s https://codecov.io/bash)
+ uses: codecov/codecov-action@v1
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
diff --git a/vendor/chillerlan/php-qrcode/.travis.yml b/vendor/chillerlan/php-qrcode/.travis.yml
index 78b8d79e9..7b2377fd8 100644
--- a/vendor/chillerlan/php-qrcode/.travis.yml
+++ b/vendor/chillerlan/php-qrcode/.travis.yml
@@ -1,3 +1,8 @@
+branches:
+ only:
+ - main
+ - v3.2.x
+
addons:
apt:
packages:
diff --git a/vendor/chillerlan/php-qrcode/composer.json b/vendor/chillerlan/php-qrcode/composer.json
index c2299a350..625149ce7 100644
--- a/vendor/chillerlan/php-qrcode/composer.json
+++ b/vendor/chillerlan/php-qrcode/composer.json
@@ -24,12 +24,13 @@
}
],
"require": {
- "php": "^7.2",
+ "php": "^7.2 || ^8.0",
"ext-mbstring": "*",
- "chillerlan/php-settings-container": "^1.2"
+ "chillerlan/php-settings-container": "^1.2.2"
},
"require-dev": {
"phpunit/phpunit": "^8.5",
+ "phan/phan": "^3.2.2",
"setasign/fpdf": "^1.8.2"
},
"suggest": {
diff --git a/vendor/chillerlan/php-qrcode/examples/QRImageWithLogo.php b/vendor/chillerlan/php-qrcode/examples/QRImageWithLogo.php
index f9d94ae34..76aa5ced7 100644
--- a/vendor/chillerlan/php-qrcode/examples/QRImageWithLogo.php
+++ b/vendor/chillerlan/php-qrcode/examples/QRImageWithLogo.php
@@ -41,9 +41,9 @@ class QRImageWithLogo extends QRImage{
}
$this->matrix->setLogoSpace(
- $this->options->logoWidth,
- $this->options->logoHeight
- // not utilizing the position here
+ $this->options->logoSpaceWidth,
+ $this->options->logoSpaceHeight
+ // not utilizing the position here
);
// there's no need to save the result of dump() into $this->image here
@@ -55,9 +55,9 @@ class QRImageWithLogo extends QRImage{
$w = imagesx($im);
$h = imagesy($im);
- // set new logo size, leave a border of 1 module
- $lw = ($this->options->logoWidth - 2) * $this->options->scale;
- $lh = ($this->options->logoHeight - 2) * $this->options->scale;
+ // set new logo size, leave a border of 1 module (no proportional resize/centering)
+ $lw = ($this->options->logoSpaceWidth - 2) * $this->options->scale;
+ $lh = ($this->options->logoSpaceHeight - 2) * $this->options->scale;
// get the qrcode size
$ql = $this->matrix->size() * $this->options->scale;
diff --git a/vendor/chillerlan/php-qrcode/examples/imageWithLogo.php b/vendor/chillerlan/php-qrcode/examples/imageWithLogo.php
index 987e10c11..36f63d503 100644
--- a/vendor/chillerlan/php-qrcode/examples/imageWithLogo.php
+++ b/vendor/chillerlan/php-qrcode/examples/imageWithLogo.php
@@ -16,14 +16,15 @@ require_once __DIR__.'/../vendor/autoload.php';
$data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
/**
- * @property int $logoWidth
- * @property int $logoHeight
+ * @property int $logoSpaceWidth
+ * @property int $logoSpaceHeight
*
* @noinspection PhpIllegalPsrClassPathInspection
*/
class LogoOptions extends QROptions{
- protected $logoWidth;
- protected $logoHeight;
+ // size in QR modules, multiply with QROptions::$scale for pixel size
+ protected $logoSpaceWidth;
+ protected $logoSpaceHeight;
}
$options = new LogoOptions;
@@ -31,8 +32,8 @@ $options = new LogoOptions;
$options->version = 7;
$options->eccLevel = QRCode::ECC_H;
$options->imageBase64 = false;
-$options->logoWidth = 13;
-$options->logoHeight = 13;
+$options->logoSpaceWidth = 13;
+$options->logoSpaceHeight = 13;
$options->scale = 5;
$options->imageTransparent = false;
diff --git a/vendor/chillerlan/php-qrcode/src/Data/QRMatrix.php b/vendor/chillerlan/php-qrcode/src/Data/QRMatrix.php
index a6d8b09e2..5b4487a40 100644
--- a/vendor/chillerlan/php-qrcode/src/Data/QRMatrix.php
+++ b/vendor/chillerlan/php-qrcode/src/Data/QRMatrix.php
@@ -589,12 +589,12 @@ class QRMatrix{
throw new QRCodeDataException('ECC level "H" required to add logo space');
}
- // we need uneven sizes, adjust if needed
- if(($width % 2) === 0){
+ // we need uneven sizes to center the logo space, adjust if needed
+ if($startX === null && ($width % 2) === 0){
$width++;
}
- if(($height % 2) === 0){
+ if($startY === null && ($height % 2) === 0){
$height++;
}
diff --git a/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php b/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php
index 34ecf4f91..c4466a658 100644
--- a/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php
+++ b/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php
@@ -13,6 +13,7 @@
namespace chillerlan\QRCodeTest\Output;
use chillerlan\QRCode\{QRCode, Output\QRImage};
+use const PHP_MAJOR_VERSION;
class QRImageTest extends QROutputTestAbstract{
@@ -63,7 +64,14 @@ class QRImageTest extends QROutputTestAbstract{
$this->setOutputInterface();
- $this::assertIsResource($this->outputInterface->dump());
+ $data = $this->outputInterface->dump();
+
+ if(PHP_MAJOR_VERSION >= 8){
+ $this::assertInstanceOf('\\GdImage', $data);
+ }
+ else{
+ $this::assertIsResource($data);
+ }
}
}
diff --git a/vendor/chillerlan/php-settings-container/.travis.yml b/vendor/chillerlan/php-settings-container/.travis.yml
index 208cdeb6a..c2ad210ed 100644
--- a/vendor/chillerlan/php-settings-container/.travis.yml
+++ b/vendor/chillerlan/php-settings-container/.travis.yml
@@ -4,10 +4,10 @@ matrix:
include:
- php: 7.2
- php: 7.3
- - php: 7.4snapshot
+ - php: 7.4
+ - php: 8.0
- php: nightly
allow_failures:
- - php: 7.4snapshot
- php: nightly
diff --git a/vendor/chillerlan/php-settings-container/README.md b/vendor/chillerlan/php-settings-container/README.md
index 7d0ccf09d..f3bb26c5e 100644
--- a/vendor/chillerlan/php-settings-container/README.md
+++ b/vendor/chillerlan/php-settings-container/README.md
@@ -51,8 +51,8 @@ Profit!
## Usage
-The `SettingsContainerInterface` (wrapped in`SettingsContainerAbstract` ) provides plug-in functionality for immutable object variables and adds some fancy, like loading/saving JSON, arrays etc.
-It takes iterable as the only constructor argument and calls a method with the trait's name on invocation (`MyTrait::MyTrait()`) for each used trait.
+The `SettingsContainerInterface` (wrapped in`SettingsContainerAbstract` ) provides plug-in functionality for immutable object properties and adds some fancy, like loading/saving JSON, arrays etc.
+It takes an `iterable` as the only constructor argument and calls a method with the trait's name on invocation (`MyTrait::MyTrait()`) for each used trait.
### Simple usage
```php
@@ -61,6 +61,13 @@ class MyContainer extends SettingsContainerAbstract{
protected $bar;
}
```
+Typed properties in PHP 7.4+:
+```php
+class MyContainer extends SettingsContainerAbstract{
+ protected string $foo;
+ protected string $bar;
+}
+```
```php
// use it just like a \stdClass
@@ -78,6 +85,8 @@ $container->fromJSON('{"foo": "what", "bar": "foo"}');
$container->toArray(); // -> ['foo' => 'what', 'bar' => 'foo']
// or JSON
$container->toJSON(); // -> {"foo": "what", "bar": "foo"}
+// JSON via JsonSerializable
+$json = json_encode($container); // -> {"foo": "what", "bar": "foo"}
//non-existing properties will be ignored:
$container->nope = 'what';
diff --git a/vendor/chillerlan/php-settings-container/composer.json b/vendor/chillerlan/php-settings-container/composer.json
index 4dc758665..4464e6e8a 100644
--- a/vendor/chillerlan/php-settings-container/composer.json
+++ b/vendor/chillerlan/php-settings-container/composer.json
@@ -20,11 +20,11 @@
"source": "https://github.com/chillerlan/php-settings-container"
},
"require": {
- "php": "^7.2",
+ "php": "^7.2 || ^8.0",
"ext-json": "*"
},
"require-dev": {
- "phpunit/phpunit": "^8.3"
+ "phpunit/phpunit": "^8.4"
},
"autoload": {
"psr-4": {
diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php
index 0cd6055d1..fce8549f0 100644
--- a/vendor/composer/ClassLoader.php
+++ b/vendor/composer/ClassLoader.php
@@ -37,130 +37,57 @@ namespace Composer\Autoload;
*
* @author Fabien Potencier <[email protected]>
* @author Jordi Boggiano <[email protected]>
- * @see https://www.php-fig.org/psr/psr-0/
- * @see https://www.php-fig.org/psr/psr-4/
+ * @see http://www.php-fig.org/psr/psr-0/
+ * @see http://www.php-fig.org/psr/psr-4/
*/
class ClassLoader
{
- /** @var ?string */
- private $vendorDir;
-
// PSR-4
- /**
- * @var array[]
- * @psalm-var array<string, array<string, int>>
- */
private $prefixLengthsPsr4 = array();
- /**
- * @var array[]
- * @psalm-var array<string, array<int, string>>
- */
private $prefixDirsPsr4 = array();
- /**
- * @var array[]
- * @psalm-var array<string, string>
- */
private $fallbackDirsPsr4 = array();
// PSR-0
- /**
- * @var array[]
- * @psalm-var array<string, array<string, string[]>>
- */
private $prefixesPsr0 = array();
- /**
- * @var array[]
- * @psalm-var array<string, string>
- */
private $fallbackDirsPsr0 = array();
- /** @var bool */
private $useIncludePath = false;
-
- /**
- * @var string[]
- * @psalm-var array<string, string>
- */
private $classMap = array();
-
- /** @var bool */
private $classMapAuthoritative = false;
-
- /**
- * @var bool[]
- * @psalm-var array<string, bool>
- */
private $missingClasses = array();
-
- /** @var ?string */
private $apcuPrefix;
- /**
- * @var self[]
- */
- private static $registeredLoaders = array();
-
- /**
- * @param ?string $vendorDir
- */
- public function __construct($vendorDir = null)
- {
- $this->vendorDir = $vendorDir;
- }
-
- /**
- * @return string[]
- */
public function getPrefixes()
{
if (!empty($this->prefixesPsr0)) {
- return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
+ return call_user_func_array('array_merge', $this->prefixesPsr0);
}
return array();
}
- /**
- * @return array[]
- * @psalm-return array<string, array<int, string>>
- */
public function getPrefixesPsr4()
{
return $this->prefixDirsPsr4;
}
- /**
- * @return array[]
- * @psalm-return array<string, string>
- */
public function getFallbackDirs()
{
return $this->fallbackDirsPsr0;
}
- /**
- * @return array[]
- * @psalm-return array<string, string>
- */
public function getFallbackDirsPsr4()
{
return $this->fallbackDirsPsr4;
}
- /**
- * @return string[] Array of classname => path
- * @psalm-var array<string, string>
- */
public function getClassMap()
{
return $this->classMap;
}
/**
- * @param string[] $classMap Class to filename map
- * @psalm-param array<string, string> $classMap
- *
- * @return void
+ * @param array $classMap Class to filename map
*/
public function addClassMap(array $classMap)
{
@@ -175,11 +102,9 @@ class ClassLoader
* Registers a set of PSR-0 directories for a given prefix, either
* appending or prepending to the ones previously set for this prefix.
*
- * @param string $prefix The prefix
- * @param string[]|string $paths The PSR-0 root directories
- * @param bool $prepend Whether to prepend the directories
- *
- * @return void
+ * @param string $prefix The prefix
+ * @param array|string $paths The PSR-0 root directories
+ * @param bool $prepend Whether to prepend the directories
*/
public function add($prefix, $paths, $prepend = false)
{
@@ -222,13 +147,11 @@ class ClassLoader
* Registers a set of PSR-4 directories for a given namespace, either
* appending or prepending to the ones previously set for this namespace.
*
- * @param string $prefix The prefix/namespace, with trailing '\\'
- * @param string[]|string $paths The PSR-4 base directories
- * @param bool $prepend Whether to prepend the directories
+ * @param string $prefix The prefix/namespace, with trailing '\\'
+ * @param array|string $paths The PSR-4 base directories
+ * @param bool $prepend Whether to prepend the directories
*
* @throws \InvalidArgumentException
- *
- * @return void
*/
public function addPsr4($prefix, $paths, $prepend = false)
{
@@ -272,10 +195,8 @@ class ClassLoader
* Registers a set of PSR-0 directories for a given prefix,
* replacing any others previously set for this prefix.
*
- * @param string $prefix The prefix
- * @param string[]|string $paths The PSR-0 base directories
- *
- * @return void
+ * @param string $prefix The prefix
+ * @param array|string $paths The PSR-0 base directories
*/
public function set($prefix, $paths)
{
@@ -290,12 +211,10 @@ class ClassLoader
* Registers a set of PSR-4 directories for a given namespace,
* replacing any others previously set for this namespace.
*
- * @param string $prefix The prefix/namespace, with trailing '\\'
- * @param string[]|string $paths The PSR-4 base directories
+ * @param string $prefix The prefix/namespace, with trailing '\\'
+ * @param array|string $paths The PSR-4 base directories
*
* @throws \InvalidArgumentException
- *
- * @return void
*/
public function setPsr4($prefix, $paths)
{
@@ -315,8 +234,6 @@ class ClassLoader
* Turns on searching the include path for class files.
*
* @param bool $useIncludePath
- *
- * @return void
*/
public function setUseIncludePath($useIncludePath)
{
@@ -339,8 +256,6 @@ class ClassLoader
* that have not been registered with the class map.
*
* @param bool $classMapAuthoritative
- *
- * @return void
*/
public function setClassMapAuthoritative($classMapAuthoritative)
{
@@ -361,8 +276,6 @@ class ClassLoader
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
*
* @param string|null $apcuPrefix
- *
- * @return void
*/
public function setApcuPrefix($apcuPrefix)
{
@@ -383,44 +296,25 @@ class ClassLoader
* Registers this instance as an autoloader.
*
* @param bool $prepend Whether to prepend the autoloader or not
- *
- * @return void
*/
public function register($prepend = false)
{
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
-
- if (null === $this->vendorDir) {
- return;
- }
-
- if ($prepend) {
- self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
- } else {
- unset(self::$registeredLoaders[$this->vendorDir]);
- self::$registeredLoaders[$this->vendorDir] = $this;
- }
}
/**
* Unregisters this instance as an autoloader.
- *
- * @return void
*/
public function unregister()
{
spl_autoload_unregister(array($this, 'loadClass'));
-
- if (null !== $this->vendorDir) {
- unset(self::$registeredLoaders[$this->vendorDir]);
- }
}
/**
* Loads the given class or interface.
*
* @param string $class The name of the class
- * @return true|null True if loaded, null otherwise
+ * @return bool|null True if loaded, null otherwise
*/
public function loadClass($class)
{
@@ -429,8 +323,6 @@ class ClassLoader
return true;
}
-
- return null;
}
/**
@@ -475,21 +367,6 @@ class ClassLoader
return $file;
}
- /**
- * Returns the currently registered loaders indexed by their corresponding vendor directories.
- *
- * @return self[]
- */
- public static function getRegisteredLoaders()
- {
- return self::$registeredLoaders;
- }
-
- /**
- * @param string $class
- * @param string $ext
- * @return string|false
- */
private function findFileWithExtension($class, $ext)
{
// PSR-4 lookup
@@ -561,10 +438,6 @@ class ClassLoader
* Scope isolated include.
*
* Prevents access to $this/self from included files.
- *
- * @param string $file
- * @return void
- * @private
*/
function includeFile($file)
{
diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE
index f27399a04..62ecfd8d0 100644
--- a/vendor/composer/LICENSE
+++ b/vendor/composer/LICENSE
@@ -1,4 +1,3 @@
-
Copyright (c) Nils Adermann, Jordi Boggiano
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -18,4 +17,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-
diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php
index 429869e46..8bbdabd74 100644
--- a/vendor/composer/autoload_classmap.php
+++ b/vendor/composer/autoload_classmap.php
@@ -6,7 +6,6 @@ $vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
- 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
'IdiormMethodMissingException' => $vendorDir . '/j4mie/idiorm/idiorm.php',
'IdiormResultSet' => $vendorDir . '/j4mie/idiorm/idiorm.php',
'IdiormString' => $vendorDir . '/j4mie/idiorm/idiorm.php',
diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php
index 51b54d2f0..8d2a1334f 100644
--- a/vendor/composer/autoload_real.php
+++ b/vendor/composer/autoload_real.php
@@ -23,12 +23,12 @@ class ComposerAutoloaderInit19fc2ff1c0f9a92279c7979386bb2056
}
spl_autoload_register(array('ComposerAutoloaderInit19fc2ff1c0f9a92279c7979386bb2056', 'loadClassLoader'), true, true);
- self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit19fc2ff1c0f9a92279c7979386bb2056', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
- require __DIR__ . '/autoload_static.php';
+ require_once __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit19fc2ff1c0f9a92279c7979386bb2056::getInitializer($loader));
} else {
diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php
index d1b8ceed0..a8ad7dd29 100644
--- a/vendor/composer/autoload_static.php
+++ b/vendor/composer/autoload_static.php
@@ -154,7 +154,6 @@ class ComposerStaticInit19fc2ff1c0f9a92279c7979386bb2056
);
public static $classMap = array (
- 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
'IdiormMethodMissingException' => __DIR__ . '/..' . '/j4mie/idiorm/idiorm.php',
'IdiormResultSet' => __DIR__ . '/..' . '/j4mie/idiorm/idiorm.php',
'IdiormString' => __DIR__ . '/..' . '/j4mie/idiorm/idiorm.php',
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index e05582fec..6848b75c0 100644
--- a/vendor/composer/installed.json
+++ b/vendor/composer/installed.json
@@ -1,684 +1,657 @@
-{
- "packages": [
- {
- "name": "beberlei/assert",
- "version": "v3.2.7",
- "version_normalized": "3.2.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/beberlei/assert.git",
- "reference": "d63a6943fc4fd1a2aedb65994e3548715105abcf"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/beberlei/assert/zipball/d63a6943fc4fd1a2aedb65994e3548715105abcf",
- "reference": "d63a6943fc4fd1a2aedb65994e3548715105abcf",
- "shasum": ""
- },
- "require": {
- "ext-ctype": "*",
- "ext-json": "*",
- "ext-mbstring": "*",
- "ext-simplexml": "*",
- "php": "^7"
- },
- "require-dev": {
- "friendsofphp/php-cs-fixer": "*",
- "phpstan/phpstan-shim": "*",
- "phpunit/phpunit": ">=6.0.0 <8"
- },
- "suggest": {
- "ext-intl": "Needed to allow Assertion::count(), Assertion::isCountable(), Assertion::minCount(), and Assertion::maxCount() to operate on ResourceBundles"
- },
- "time": "2019-12-19T17:51:41+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Assert\\": "lib/Assert"
- },
- "files": [
- "lib/Assert/functions.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-2-Clause"
- ],
- "authors": [
- {
- "name": "Benjamin Eberlei",
- "email": "[email protected]",
- "role": "Lead Developer"
- },
- {
- "name": "Richard Quadling",
- "email": "[email protected]",
- "role": "Collaborator"
- }
- ],
- "description": "Thin assertion library for input validation in business models.",
- "keywords": [
- "assert",
- "assertion",
- "validation"
- ],
- "support": {
- "issues": "https://github.com/beberlei/assert/issues",
- "source": "https://github.com/beberlei/assert/tree/v3"
- },
- "install-path": "../beberlei/assert"
- },
- {
- "name": "chillerlan/php-qrcode",
- "version": "3.4.0",
- "version_normalized": "3.4.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/chillerlan/php-qrcode.git",
- "reference": "d8bf297e6843a53aeaa8f3285ce04fc349d133d6"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/chillerlan/php-qrcode/zipball/d8bf297e6843a53aeaa8f3285ce04fc349d133d6",
- "reference": "d8bf297e6843a53aeaa8f3285ce04fc349d133d6",
- "shasum": ""
- },
- "require": {
- "chillerlan/php-settings-container": "^1.2",
- "ext-mbstring": "*",
- "php": "^7.2"
- },
- "require-dev": {
- "phpunit/phpunit": "^8.5",
- "setasign/fpdf": "^1.8.2"
- },
- "suggest": {
- "chillerlan/php-authenticator": "Yet another Google authenticator! Also creates URIs for mobile apps.",
- "setasign/fpdf": "Required to use the QR FPDF output."
- },
- "time": "2020-11-18T20:51:41+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "chillerlan\\QRCode\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Kazuhiko Arase",
- "homepage": "https://github.com/kazuhikoarase"
- },
- {
- "name": "Smiley",
- "email": "[email protected]",
- "homepage": "https://github.com/codemasher"
- },
- {
- "name": "Contributors",
- "homepage": "https://github.com/chillerlan/php-qrcode/graphs/contributors"
- }
- ],
- "description": "A QR code generator. PHP 7.2+",
- "homepage": "https://github.com/chillerlan/php-qrcode",
- "keywords": [
- "phpqrcode",
- "qr",
- "qr code",
- "qrcode",
- "qrcode-generator"
- ],
- "support": {
- "issues": "https://github.com/chillerlan/php-qrcode/issues",
- "source": "https://github.com/chillerlan/php-qrcode/tree/3.4.0"
- },
- "funding": [
- {
- "url": "https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4",
- "type": "custom"
- },
- {
- "url": "https://ko-fi.com/codemasher",
- "type": "ko_fi"
- }
- ],
- "install-path": "../chillerlan/php-qrcode"
- },
- {
- "name": "chillerlan/php-settings-container",
- "version": "1.2.1",
- "version_normalized": "1.2.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/chillerlan/php-settings-container.git",
- "reference": "b9b0431dffd74102ee92348a63b4c33fc8ba639b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/b9b0431dffd74102ee92348a63b4c33fc8ba639b",
- "reference": "b9b0431dffd74102ee92348a63b4c33fc8ba639b",
- "shasum": ""
- },
- "require": {
- "ext-json": "*",
- "php": "^7.2"
- },
- "require-dev": {
- "phpunit/phpunit": "^8.3"
- },
- "time": "2019-09-10T00:09:44+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "chillerlan\\Settings\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Smiley",
- "email": "[email protected]",
- "homepage": "https://github.com/codemasher"
- }
- ],
- "description": "A container class for immutable settings objects. Not a DI container. PHP 7.2+",
- "homepage": "https://github.com/chillerlan/php-settings-container",
- "keywords": [
- "PHP7",
- "Settings",
- "container",
- "helper"
- ],
- "support": {
- "issues": "https://github.com/chillerlan/php-settings-container/issues",
- "source": "https://github.com/chillerlan/php-settings-container"
- },
- "install-path": "../chillerlan/php-settings-container"
- },
- {
- "name": "j4mie/idiorm",
- "version": "v1.5.7",
- "version_normalized": "1.5.7.0",
- "source": {
- "type": "git",
- "url": "https://github.com/j4mie/idiorm.git",
- "reference": "d23f97053ef5d0b988a02c6a71eb5c6118b2f5b4"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/j4mie/idiorm/zipball/d23f97053ef5d0b988a02c6a71eb5c6118b2f5b4",
- "reference": "d23f97053ef5d0b988a02c6a71eb5c6118b2f5b4",
- "shasum": ""
- },
- "require": {
- "php": ">=5.2.0"
- },
- "require-dev": {
- "ext-pdo_sqlite": "*",
- "phpunit/phpunit": "^4.8"
- },
- "time": "2020-04-29T00:37:09+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "classmap": [
- "idiorm.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-2-Clause",
- "BSD-3-Clause",
- "BSD-4-Clause"
- ],
- "authors": [
- {
- "name": "Jamie Matthews",
- "email": "[email protected]",
- "homepage": "http://j4mie.org",
- "role": "Developer"
- },
- {
- "name": "Simon Holywell",
- "email": "[email protected]",
- "homepage": "http://simonholywell.com",
- "role": "Maintainer"
- },
- {
- "name": "Durham Hale",
- "email": "[email protected]",
- "homepage": "http://durhamhale.com",
- "role": "Maintainer"
- }
- ],
- "description": "A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5",
- "homepage": "http://j4mie.github.com/idiormandparis",
- "keywords": [
- "idiorm",
- "orm",
- "query builder"
- ],
- "support": {
- "issues": "https://github.com/j4mie/idiorm/issues",
- "source": "https://github.com/j4mie/idiorm"
- },
- "install-path": "../j4mie/idiorm"
- },
- {
- "name": "mervick/material-design-icons",
- "version": "2.2.0",
- "version_normalized": "2.2.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/mervick/material-design-icons.git",
- "reference": "635435c8d3df3a6da3241648caf8a65d1c07cc1a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/mervick/material-design-icons/zipball/635435c8d3df3a6da3241648caf8a65d1c07cc1a",
- "reference": "635435c8d3df3a6da3241648caf8a65d1c07cc1a",
- "shasum": ""
- },
- "time": "2016-02-22T01:05:40+00:00",
- "type": "library",
- "installation-source": "dist",
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT",
- "CC-BY-4.0"
- ],
- "authors": [
- {
- "name": "Andrey Izman",
- "email": "[email protected]"
- }
- ],
- "description": "Google Material Design Icons For Using With Bootstrap",
- "homepage": "http://github.com/mervick/material-design-icons",
- "keywords": [
- "bootstrap",
- "google",
- "icons",
- "icons-web-font",
- "material",
- "material-design",
- "web-font"
- ],
- "support": {
- "issues": "https://github.com/mervick/material-design-icons/issues",
- "source": "http://github.com/mervick/material-design-icons"
- },
- "install-path": "../mervick/material-design-icons"
- },
- {
- "name": "paragonie/constant_time_encoding",
- "version": "v2.4.0",
- "version_normalized": "2.4.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/paragonie/constant_time_encoding.git",
- "reference": "f34c2b11eb9d2c9318e13540a1dbc2a3afbd939c"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/f34c2b11eb9d2c9318e13540a1dbc2a3afbd939c",
- "reference": "f34c2b11eb9d2c9318e13540a1dbc2a3afbd939c",
- "shasum": ""
- },
- "require": {
- "php": "^7|^8"
- },
- "require-dev": {
- "phpunit/phpunit": "^6|^7|^8|^9",
- "vimeo/psalm": "^1|^2|^3|^4"
- },
- "time": "2020-12-06T15:14:20+00:00",
- "type": "library",
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "ParagonIE\\ConstantTime\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Paragon Initiative Enterprises",
- "email": "[email protected]",
- "homepage": "https://paragonie.com",
- "role": "Maintainer"
- },
- {
- "name": "Steve 'Sc00bz' Thomas",
- "email": "[email protected]",
- "homepage": "https://www.tobtu.com",
- "role": "Original Developer"
- }
- ],
- "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)",
- "keywords": [
- "base16",
- "base32",
- "base32_decode",
- "base32_encode",
- "base64",
- "base64_decode",
- "base64_encode",
- "bin2hex",
- "encoding",
- "hex",
- "hex2bin",
- "rfc4648"
- ],
- "support": {
- "email": "[email protected]",
- "issues": "https://github.com/paragonie/constant_time_encoding/issues",
- "source": "https://github.com/paragonie/constant_time_encoding"
- },
- "install-path": "../paragonie/constant_time_encoding"
- },
- {
- "name": "phpstan/phpstan",
- "version": "1.0.0",
- "version_normalized": "1.0.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/phpstan/phpstan.git",
- "reference": "0d13a99513182e521271d46bde8f28caa4f84d97"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/0d13a99513182e521271d46bde8f28caa4f84d97",
- "reference": "0d13a99513182e521271d46bde8f28caa4f84d97",
- "shasum": ""
- },
- "require": {
- "php": "^7.1|^8.0"
- },
- "conflict": {
- "phpstan/phpstan-shim": "*"
- },
- "time": "2021-11-01T06:38:20+00:00",
- "bin": [
- "phpstan",
- "phpstan.phar"
- ],
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "files": [
- "bootstrap.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "PHPStan - PHP Static Analysis Tool",
- "support": {
- "issues": "https://github.com/phpstan/phpstan/issues",
- "source": "https://github.com/phpstan/phpstan/tree/1.0.0"
- },
- "funding": [
- {
- "url": "https://github.com/ondrejmirtes",
- "type": "github"
- },
- {
- "url": "https://github.com/phpstan",
- "type": "github"
- },
- {
- "url": "https://www.patreon.com/phpstan",
- "type": "patreon"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
- "type": "tidelift"
- }
- ],
- "install-path": "../phpstan/phpstan"
- },
- {
- "name": "spomky-labs/otphp",
- "version": "v10.0.1",
- "version_normalized": "10.0.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/Spomky-Labs/otphp.git",
- "reference": "f44cce5a9db4b8da410215d992110482c931232f"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/Spomky-Labs/otphp/zipball/f44cce5a9db4b8da410215d992110482c931232f",
- "reference": "f44cce5a9db4b8da410215d992110482c931232f",
- "shasum": ""
- },
- "require": {
- "beberlei/assert": "^3.0",
- "ext-mbstring": "*",
- "paragonie/constant_time_encoding": "^2.0",
- "php": "^7.2|^8.0",
- "thecodingmachine/safe": "^0.1.14|^1.0"
- },
- "require-dev": {
- "php-coveralls/php-coveralls": "^2.0",
- "phpstan/phpstan": "^0.12",
- "phpstan/phpstan-beberlei-assert": "^0.12",
- "phpstan/phpstan-deprecation-rules": "^0.12",
- "phpstan/phpstan-phpunit": "^0.12",
- "phpstan/phpstan-strict-rules": "^0.12",
- "phpunit/phpunit": "^8.0",
- "thecodingmachine/phpstan-safe-rule": "^1.0"
- },
- "time": "2020-01-28T09:24:19+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "v10.0": "10.0.x-dev",
- "v9.0": "9.0.x-dev",
- "v8.3": "8.3.x-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "OTPHP\\": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Florent Morselli",
- "homepage": "https://github.com/Spomky"
- },
- {
- "name": "All contributors",
- "homepage": "https://github.com/Spomky-Labs/otphp/contributors"
- }
- ],
- "description": "A PHP library for generating one time passwords according to RFC 4226 (HOTP Algorithm) and the RFC 6238 (TOTP Algorithm) and compatible with Google Authenticator",
- "homepage": "https://github.com/Spomky-Labs/otphp",
- "keywords": [
- "FreeOTP",
- "RFC 4226",
- "RFC 6238",
- "google authenticator",
- "hotp",
- "otp",
- "totp"
- ],
- "support": {
- "issues": "https://github.com/Spomky-Labs/otphp/issues",
- "source": "https://github.com/Spomky-Labs/otphp/tree/v10.0.1"
- },
- "install-path": "../spomky-labs/otphp"
- },
- {
- "name": "thecodingmachine/safe",
- "version": "v1.3.3",
- "version_normalized": "1.3.3.0",
- "source": {
- "type": "git",
- "url": "https://github.com/thecodingmachine/safe.git",
- "reference": "a8ab0876305a4cdaef31b2350fcb9811b5608dbc"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/a8ab0876305a4cdaef31b2350fcb9811b5608dbc",
- "reference": "a8ab0876305a4cdaef31b2350fcb9811b5608dbc",
- "shasum": ""
- },
- "require": {
- "php": ">=7.2"
- },
- "require-dev": {
- "phpstan/phpstan": "^0.12",
- "squizlabs/php_codesniffer": "^3.2",
- "thecodingmachine/phpstan-strict-rules": "^0.12"
- },
- "time": "2020-10-28T17:51:34+00:00",
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "0.1-dev"
- }
- },
- "installation-source": "dist",
- "autoload": {
- "psr-4": {
- "Safe\\": [
- "lib/",
- "deprecated/",
- "generated/"
- ]
- },
- "files": [
- "deprecated/apc.php",
- "deprecated/libevent.php",
- "deprecated/mssql.php",
- "deprecated/stats.php",
- "lib/special_cases.php",
- "generated/apache.php",
- "generated/apcu.php",
- "generated/array.php",
- "generated/bzip2.php",
- "generated/calendar.php",
- "generated/classobj.php",
- "generated/com.php",
- "generated/cubrid.php",
- "generated/curl.php",
- "generated/datetime.php",
- "generated/dir.php",
- "generated/eio.php",
- "generated/errorfunc.php",
- "generated/exec.php",
- "generated/fileinfo.php",
- "generated/filesystem.php",
- "generated/filter.php",
- "generated/fpm.php",
- "generated/ftp.php",
- "generated/funchand.php",
- "generated/gmp.php",
- "generated/gnupg.php",
- "generated/hash.php",
- "generated/ibase.php",
- "generated/ibmDb2.php",
- "generated/iconv.php",
- "generated/image.php",
- "generated/imap.php",
- "generated/info.php",
- "generated/ingres-ii.php",
- "generated/inotify.php",
- "generated/json.php",
- "generated/ldap.php",
- "generated/libxml.php",
- "generated/lzf.php",
- "generated/mailparse.php",
- "generated/mbstring.php",
- "generated/misc.php",
- "generated/msql.php",
- "generated/mysql.php",
- "generated/mysqli.php",
- "generated/mysqlndMs.php",
- "generated/mysqlndQc.php",
- "generated/network.php",
- "generated/oci8.php",
- "generated/opcache.php",
- "generated/openssl.php",
- "generated/outcontrol.php",
- "generated/password.php",
- "generated/pcntl.php",
- "generated/pcre.php",
- "generated/pdf.php",
- "generated/pgsql.php",
- "generated/posix.php",
- "generated/ps.php",
- "generated/pspell.php",
- "generated/readline.php",
- "generated/rpminfo.php",
- "generated/rrd.php",
- "generated/sem.php",
- "generated/session.php",
- "generated/shmop.php",
- "generated/simplexml.php",
- "generated/sockets.php",
- "generated/sodium.php",
- "generated/solr.php",
- "generated/spl.php",
- "generated/sqlsrv.php",
- "generated/ssdeep.php",
- "generated/ssh2.php",
- "generated/stream.php",
- "generated/strings.php",
- "generated/swoole.php",
- "generated/uodbc.php",
- "generated/uopz.php",
- "generated/url.php",
- "generated/var.php",
- "generated/xdiff.php",
- "generated/xml.php",
- "generated/xmlrpc.php",
- "generated/yaml.php",
- "generated/yaz.php",
- "generated/zip.php",
- "generated/zlib.php"
+[
+ {
+ "name": "beberlei/assert",
+ "version": "v3.2.2",
+ "version_normalized": "3.2.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/beberlei/assert.git",
+ "reference": "5547e7d03f8c6be121b8b9db6d6ed5a22ffdcb01"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/beberlei/assert/zipball/5547e7d03f8c6be121b8b9db6d6ed5a22ffdcb01",
+ "reference": "5547e7d03f8c6be121b8b9db6d6ed5a22ffdcb01",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7"
+ },
+ "require-dev": {
+ "friendsofphp/php-cs-fixer": "*",
+ "phpstan/phpstan-shim": "*",
+ "phpunit/phpunit": ">=6.0.0 <8"
+ },
+ "time": "2019-08-23T16:04:58+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Assert\\": "lib/Assert"
+ },
+ "files": [
+ "lib/Assert/functions.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-2-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Benjamin Eberlei",
+ "email": "[email protected]",
+ "role": "Lead Developer"
+ },
+ {
+ "name": "Richard Quadling",
+ "email": "[email protected]",
+ "role": "Collaborator"
+ }
+ ],
+ "description": "Thin assertion library for input validation in business models.",
+ "keywords": [
+ "assert",
+ "assertion",
+ "validation"
+ ]
+ },
+ {
+ "name": "chillerlan/php-qrcode",
+ "version": "3.4.1",
+ "version_normalized": "3.4.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/chillerlan/php-qrcode.git",
+ "reference": "468603b687a5fe75c1ff33857a45f1726c7b95a9"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/chillerlan/php-qrcode/zipball/468603b687a5fe75c1ff33857a45f1726c7b95a9",
+ "reference": "468603b687a5fe75c1ff33857a45f1726c7b95a9",
+ "shasum": ""
+ },
+ "require": {
+ "chillerlan/php-settings-container": "^1.2.2",
+ "ext-mbstring": "*",
+ "php": "^7.2 || ^8.0"
+ },
+ "require-dev": {
+ "phan/phan": "^3.2.2",
+ "phpunit/phpunit": "^8.5",
+ "setasign/fpdf": "^1.8.2"
+ },
+ "suggest": {
+ "chillerlan/php-authenticator": "Yet another Google authenticator! Also creates URIs for mobile apps.",
+ "setasign/fpdf": "Required to use the QR FPDF output."
+ },
+ "time": "2021-09-03T17:54:45+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "chillerlan\\QRCode\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Kazuhiko Arase",
+ "homepage": "https://github.com/kazuhikoarase"
+ },
+ {
+ "name": "Smiley",
+ "email": "[email protected]",
+ "homepage": "https://github.com/codemasher"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/chillerlan/php-qrcode/graphs/contributors"
+ }
+ ],
+ "description": "A QR code generator. PHP 7.2+",
+ "homepage": "https://github.com/chillerlan/php-qrcode",
+ "keywords": [
+ "phpqrcode",
+ "qr",
+ "qr code",
+ "qrcode",
+ "qrcode-generator"
+ ],
+ "funding": [
+ {
+ "url": "https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4",
+ "type": "custom"
+ },
+ {
+ "url": "https://ko-fi.com/codemasher",
+ "type": "ko_fi"
+ }
+ ]
+ },
+ {
+ "name": "chillerlan/php-settings-container",
+ "version": "1.2.2",
+ "version_normalized": "1.2.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/chillerlan/php-settings-container.git",
+ "reference": "d1b5284d6eb3a767459738bb0b20073f0cb3eeaf"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/d1b5284d6eb3a767459738bb0b20073f0cb3eeaf",
+ "reference": "d1b5284d6eb3a767459738bb0b20073f0cb3eeaf",
+ "shasum": ""
+ },
+ "require": {
+ "ext-json": "*",
+ "php": "^7.2 || ^8.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^8.4"
+ },
+ "time": "2021-09-03T17:33:25+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "chillerlan\\Settings\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Smiley",
+ "email": "[email protected]",
+ "homepage": "https://github.com/codemasher"
+ }
+ ],
+ "description": "A container class for immutable settings objects. Not a DI container. PHP 7.2+",
+ "homepage": "https://github.com/chillerlan/php-settings-container",
+ "keywords": [
+ "PHP7",
+ "Settings",
+ "container",
+ "helper"
+ ],
+ "funding": [
+ {
+ "url": "https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4",
+ "type": "custom"
+ },
+ {
+ "url": "https://ko-fi.com/codemasher",
+ "type": "ko_fi"
+ }
+ ]
+ },
+ {
+ "name": "j4mie/idiorm",
+ "version": "v1.5.7",
+ "version_normalized": "1.5.7.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/j4mie/idiorm.git",
+ "reference": "d23f97053ef5d0b988a02c6a71eb5c6118b2f5b4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/j4mie/idiorm/zipball/d23f97053ef5d0b988a02c6a71eb5c6118b2f5b4",
+ "reference": "d23f97053ef5d0b988a02c6a71eb5c6118b2f5b4",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.2.0"
+ },
+ "require-dev": {
+ "ext-pdo_sqlite": "*",
+ "phpunit/phpunit": "^4.8"
+ },
+ "time": "2020-04-29T00:37:09+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "classmap": [
+ "idiorm.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-2-Clause",
+ "BSD-3-Clause",
+ "BSD-4-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Jamie Matthews",
+ "email": "[email protected]",
+ "homepage": "http://j4mie.org",
+ "role": "Developer"
+ },
+ {
+ "name": "Simon Holywell",
+ "email": "[email protected]",
+ "homepage": "http://simonholywell.com",
+ "role": "Maintainer"
+ },
+ {
+ "name": "Durham Hale",
+ "email": "[email protected]",
+ "homepage": "http://durhamhale.com",
+ "role": "Maintainer"
+ }
+ ],
+ "description": "A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5",
+ "homepage": "http://j4mie.github.com/idiormandparis",
+ "keywords": [
+ "idiorm",
+ "orm",
+ "query builder"
+ ],
+ "support": {
+ "issues": "https://github.com/j4mie/idiorm/issues",
+ "source": "https://github.com/j4mie/idiorm"
+ }
+ },
+ {
+ "name": "mervick/material-design-icons",
+ "version": "2.2.0",
+ "version_normalized": "2.2.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/mervick/material-design-icons.git",
+ "reference": "635435c8d3df3a6da3241648caf8a65d1c07cc1a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/mervick/material-design-icons/zipball/635435c8d3df3a6da3241648caf8a65d1c07cc1a",
+ "reference": "635435c8d3df3a6da3241648caf8a65d1c07cc1a",
+ "shasum": ""
+ },
+ "time": "2016-02-22T01:05:40+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT",
+ "CC-BY-4.0"
+ ],
+ "authors": [
+ {
+ "name": "Andrey Izman",
+ "email": "[email protected]"
+ }
+ ],
+ "description": "Google Material Design Icons For Using With Bootstrap",
+ "homepage": "http://github.com/mervick/material-design-icons",
+ "keywords": [
+ "bootstrap",
+ "google",
+ "icons",
+ "icons-web-font",
+ "material",
+ "material-design",
+ "web-font"
+ ],
+ "support": {
+ "issues": "https://github.com/mervick/material-design-icons/issues",
+ "source": "http://github.com/mervick/material-design-icons"
+ }
+ },
+ {
+ "name": "paragonie/constant_time_encoding",
+ "version": "v2.4.0",
+ "version_normalized": "2.4.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/paragonie/constant_time_encoding.git",
+ "reference": "f34c2b11eb9d2c9318e13540a1dbc2a3afbd939c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/f34c2b11eb9d2c9318e13540a1dbc2a3afbd939c",
+ "reference": "f34c2b11eb9d2c9318e13540a1dbc2a3afbd939c",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7|^8"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^6|^7|^8|^9",
+ "vimeo/psalm": "^1|^2|^3|^4"
+ },
+ "time": "2020-12-06T15:14:20+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "ParagonIE\\ConstantTime\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Paragon Initiative Enterprises",
+ "email": "[email protected]",
+ "homepage": "https://paragonie.com",
+ "role": "Maintainer"
+ },
+ {
+ "name": "Steve 'Sc00bz' Thomas",
+ "email": "[email protected]",
+ "homepage": "https://www.tobtu.com",
+ "role": "Original Developer"
+ }
+ ],
+ "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)",
+ "keywords": [
+ "base16",
+ "base32",
+ "base32_decode",
+ "base32_encode",
+ "base64",
+ "base64_decode",
+ "base64_encode",
+ "bin2hex",
+ "encoding",
+ "hex",
+ "hex2bin",
+ "rfc4648"
+ ],
+ "support": {
+ "email": "[email protected]",
+ "issues": "https://github.com/paragonie/constant_time_encoding/issues",
+ "source": "https://github.com/paragonie/constant_time_encoding"
+ }
+ },
+ {
+ "name": "phpstan/phpstan",
+ "version": "1.1.2",
+ "version_normalized": "1.1.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpstan/phpstan.git",
+ "reference": "bcea0ae85868a89d5789c75f012c93129f842934"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/bcea0ae85868a89d5789c75f012c93129f842934",
+ "reference": "bcea0ae85868a89d5789c75f012c93129f842934",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1|^8.0"
+ },
+ "conflict": {
+ "phpstan/phpstan-shim": "*"
+ },
+ "time": "2021-11-09T12:41:09+00:00",
+ "bin": [
+ "phpstan",
+ "phpstan.phar"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "PHPStan - PHP Static Analysis Tool",
+ "funding": [
+ {
+ "url": "https://github.com/ondrejmirtes",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/phpstan",
+ "type": "github"
+ },
+ {
+ "url": "https://www.patreon.com/phpstan",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
+ "type": "tidelift"
+ }
+ ]
+ },
+ {
+ "name": "spomky-labs/otphp",
+ "version": "v10.0.1",
+ "version_normalized": "10.0.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/Spomky-Labs/otphp.git",
+ "reference": "f44cce5a9db4b8da410215d992110482c931232f"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/Spomky-Labs/otphp/zipball/f44cce5a9db4b8da410215d992110482c931232f",
+ "reference": "f44cce5a9db4b8da410215d992110482c931232f",
+ "shasum": ""
+ },
+ "require": {
+ "beberlei/assert": "^3.0",
+ "ext-mbstring": "*",
+ "paragonie/constant_time_encoding": "^2.0",
+ "php": "^7.2|^8.0",
+ "thecodingmachine/safe": "^0.1.14|^1.0"
+ },
+ "require-dev": {
+ "php-coveralls/php-coveralls": "^2.0",
+ "phpstan/phpstan": "^0.12",
+ "phpstan/phpstan-beberlei-assert": "^0.12",
+ "phpstan/phpstan-deprecation-rules": "^0.12",
+ "phpstan/phpstan-phpunit": "^0.12",
+ "phpstan/phpstan-strict-rules": "^0.12",
+ "phpunit/phpunit": "^8.0",
+ "thecodingmachine/phpstan-safe-rule": "^1.0"
+ },
+ "time": "2020-01-28T09:24:19+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "v10.0": "10.0.x-dev",
+ "v9.0": "9.0.x-dev",
+ "v8.3": "8.3.x-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "OTPHP\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Florent Morselli",
+ "homepage": "https://github.com/Spomky"
+ },
+ {
+ "name": "All contributors",
+ "homepage": "https://github.com/Spomky-Labs/otphp/contributors"
+ }
+ ],
+ "description": "A PHP library for generating one time passwords according to RFC 4226 (HOTP Algorithm) and the RFC 6238 (TOTP Algorithm) and compatible with Google Authenticator",
+ "homepage": "https://github.com/Spomky-Labs/otphp",
+ "keywords": [
+ "FreeOTP",
+ "RFC 4226",
+ "RFC 6238",
+ "google authenticator",
+ "hotp",
+ "otp",
+ "totp"
+ ],
+ "support": {
+ "issues": "https://github.com/Spomky-Labs/otphp/issues",
+ "source": "https://github.com/Spomky-Labs/otphp/tree/v10.0.1"
+ }
+ },
+ {
+ "name": "thecodingmachine/safe",
+ "version": "v1.3.3",
+ "version_normalized": "1.3.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thecodingmachine/safe.git",
+ "reference": "a8ab0876305a4cdaef31b2350fcb9811b5608dbc"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/a8ab0876305a4cdaef31b2350fcb9811b5608dbc",
+ "reference": "a8ab0876305a4cdaef31b2350fcb9811b5608dbc",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.2"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^0.12",
+ "squizlabs/php_codesniffer": "^3.2",
+ "thecodingmachine/phpstan-strict-rules": "^0.12"
+ },
+ "time": "2020-10-28T17:51:34+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "0.1-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Safe\\": [
+ "lib/",
+ "deprecated/",
+ "generated/"
]
},
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "description": "PHP core functions that throw exceptions instead of returning FALSE on error",
- "support": {
- "issues": "https://github.com/thecodingmachine/safe/issues",
- "source": "https://github.com/thecodingmachine/safe/tree/v1.3.3"
- },
- "install-path": "../thecodingmachine/safe"
+ "files": [
+ "deprecated/apc.php",
+ "deprecated/libevent.php",
+ "deprecated/mssql.php",
+ "deprecated/stats.php",
+ "lib/special_cases.php",
+ "generated/apache.php",
+ "generated/apcu.php",
+ "generated/array.php",
+ "generated/bzip2.php",
+ "generated/calendar.php",
+ "generated/classobj.php",
+ "generated/com.php",
+ "generated/cubrid.php",
+ "generated/curl.php",
+ "generated/datetime.php",
+ "generated/dir.php",
+ "generated/eio.php",
+ "generated/errorfunc.php",
+ "generated/exec.php",
+ "generated/fileinfo.php",
+ "generated/filesystem.php",
+ "generated/filter.php",
+ "generated/fpm.php",
+ "generated/ftp.php",
+ "generated/funchand.php",
+ "generated/gmp.php",
+ "generated/gnupg.php",
+ "generated/hash.php",
+ "generated/ibase.php",
+ "generated/ibmDb2.php",
+ "generated/iconv.php",
+ "generated/image.php",
+ "generated/imap.php",
+ "generated/info.php",
+ "generated/ingres-ii.php",
+ "generated/inotify.php",
+ "generated/json.php",
+ "generated/ldap.php",
+ "generated/libxml.php",
+ "generated/lzf.php",
+ "generated/mailparse.php",
+ "generated/mbstring.php",
+ "generated/misc.php",
+ "generated/msql.php",
+ "generated/mysql.php",
+ "generated/mysqli.php",
+ "generated/mysqlndMs.php",
+ "generated/mysqlndQc.php",
+ "generated/network.php",
+ "generated/oci8.php",
+ "generated/opcache.php",
+ "generated/openssl.php",
+ "generated/outcontrol.php",
+ "generated/password.php",
+ "generated/pcntl.php",
+ "generated/pcre.php",
+ "generated/pdf.php",
+ "generated/pgsql.php",
+ "generated/posix.php",
+ "generated/ps.php",
+ "generated/pspell.php",
+ "generated/readline.php",
+ "generated/rpminfo.php",
+ "generated/rrd.php",
+ "generated/sem.php",
+ "generated/session.php",
+ "generated/shmop.php",
+ "generated/simplexml.php",
+ "generated/sockets.php",
+ "generated/sodium.php",
+ "generated/solr.php",
+ "generated/spl.php",
+ "generated/sqlsrv.php",
+ "generated/ssdeep.php",
+ "generated/ssh2.php",
+ "generated/stream.php",
+ "generated/strings.php",
+ "generated/swoole.php",
+ "generated/uodbc.php",
+ "generated/uopz.php",
+ "generated/url.php",
+ "generated/var.php",
+ "generated/xdiff.php",
+ "generated/xml.php",
+ "generated/xmlrpc.php",
+ "generated/yaml.php",
+ "generated/yaz.php",
+ "generated/zip.php",
+ "generated/zlib.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "PHP core functions that throw exceptions instead of returning FALSE on error",
+ "support": {
+ "issues": "https://github.com/thecodingmachine/safe/issues",
+ "source": "https://github.com/thecodingmachine/safe/tree/v1.3.3"
}
- ],
- "dev": true,
- "dev-package-names": [
- "phpstan/phpstan"
- ]
-}
+ }
+]
diff --git a/vendor/phpstan/phpstan/README.md b/vendor/phpstan/phpstan/README.md
index b90c0d415..e4953b4a4 100644
--- a/vendor/phpstan/phpstan/README.md
+++ b/vendor/phpstan/phpstan/README.md
@@ -51,6 +51,8 @@ can be checked before you run the actual line.
<a href="https://www.shopware.com/en/"><img src="https://i.imgur.com/L4X5w9s.png" alt="Shopware" width="284" height="64"></a>
&nbsp;&nbsp;&nbsp;
<a href="https://craftcms.com/"><img src="https://i.imgur.com/xJWThke.png" alt="Craft CMS" width="283" height="64"></a>
+<br>
+<a href="https://www.worksome.com/"><img src="https://i.imgur.com/TQKSwOl.png" alt="Worksome" width="283" height="64"></a>
[**You can now sponsor my open-source work on PHPStan through GitHub Sponsors.**](https://github.com/sponsors/ondrejmirtes)
diff --git a/vendor/phpstan/phpstan/phpstan.phar b/vendor/phpstan/phpstan/phpstan.phar
index 69444cd4e..306020e3a 100644
--- a/vendor/phpstan/phpstan/phpstan.phar
+++ b/vendor/phpstan/phpstan/phpstan.phar
Binary files differ
diff --git a/vendor/phpstan/phpstan/phpstan.phar.asc b/vendor/phpstan/phpstan/phpstan.phar.asc
index 47cafb9dc..9110c4aa3 100644
--- a/vendor/phpstan/phpstan/phpstan.phar.asc
+++ b/vendor/phpstan/phpstan/phpstan.phar.asc
@@ -1,16 +1,16 @@
-----BEGIN PGP SIGNATURE-----
-iQIzBAABCgAdFiEE0yaA1ZV9xxFr4pwUzxoQjQ565yAFAmF/i1sACgkQzxoQjQ56
-5yDALhAAhsbjCJLAUrakUztJRtsze7ka9fdbE9tPzTcY79AauMrFp/YIW5v+FrlE
-O7+uvxUcNLbBPB/+v4mOIRmwFvJFjttBEKNZRviX/M3GXx/eeKqccXbkmjn/eYhu
-1l34QRdROk5cdB9KD0q47wbSWcZ4TN1JyiBxqCyE+vyBDS8EnNjSOoSf+PaVTVyt
-01sDLXZdokPF7TyeHzy0T4ye9nPyPe6//yeZkmpy40+ucJI4Y3VlNCycu5JFXt6v
-2fYSFawgkPqpm9Oy3gNSL7qm8xMYI9mi3MqXmu+RYjFl3hTsVTYXiEWGeSHZ9lKO
-BtzQfH6vhfeziZKRR7/7hCrzqz2s3v0WLdatkYeG9m2qtMNf6M7I3f0MwdMdCgb8
-hZbKFUkHFWq2cFOtz+3ZKlvpbxnXkmnGapdyNVGn5eMkr4HdmrDic/IktHp+XWub
-6xZMfHGz/fcuyLAE4XgPuVxx41wYYw2minmsgg2gsx2imTHM4r/ILezftxHIm0zG
-Bl4PjxVrXa9WPTibdjd+5Vqat6/9mjCoMc131kDIwqjLmZT2jCXA4SoM8wi6VYkw
-UdGumXXklSrN5qdxCpaEMpRMFIdVaiKyhB9MoQfeQ2hnPYA7blgE+htKT26E0vWC
-dmtYQm47CKXCWPvrPKQnn0HYgOft655lde1zu2sFjQ5u+QzS9h8=
-=PbiR
+iQIzBAABCgAdFiEE0yaA1ZV9xxFr4pwUzxoQjQ565yAFAmGKbGQACgkQzxoQjQ56
+5yAy7BAAgT9+V81RuOMz6F16uqm4gXH1ebioWokEvVb6ZR2fk7p3/m14STmmRkwe
+MIkxzWKtx/wSC6VafqAtkBPNxpo2j5QU0pmfMAvkPHh79d2lWmUaJmF71I/DCNnh
+pcZNJLe5x+YTDKU6NnwMlyZEvdaWmyJ2MCf2apBZIJ7axefEJRVVin2pshhXwbtN
+dHhrT9yFYe/vqOkOLtGDWw+yT1I6he7IpoYZUTyO9b7eadC0ga6Bet7jibNL8JBE
+cGcB2MFg9bvif0PgIOio0jQXAWjf0ZBXPvoOwTRCqq/UOPTL8SRtiflAFiFOAzk/
+FRQVC0+26NsGx7R8kS5FZNOHYTIElY1ElyzFk8HWgqrYIvzDNLtkJ68178rDJ29f
+GyAax4P+gN13biyXQycQHhXDfHN1UytopldiRkitXVFGq92sz6BFgQDLF9yxQOm1
+iL5oxWSVf6rM8AOc3DV9Aa1kCpG6FrZPJ66NBgJLzTpKARzt7CM+M8VQNA/KnHB3
+8Mt0WmAeRORSnBWQksOlnA4VUkxWDGkZGVBWMRist7gghfG7n7HxTAUAk1oo7j2b
+/gTwbeOjv/330uZG31e+hCcaj/EcocHvglegWCPMmIhpXqn25TC+87QkGt2wb6z6
+dpzTdy3Pimr5BK2YrN1+Le33CYeHKlc+6XL34BEVebAQ/A9OB/M=
+=k3NZ
-----END PGP SIGNATURE-----