validation-bugsnag-email
This commit is contained in:
@@ -115,7 +115,7 @@ class AwsS3V3Adapter implements FilesystemAdapter, PublicUrlGenerator, ChecksumP
|
||||
public function fileExists(string $path): bool
|
||||
{
|
||||
try {
|
||||
return $this->client->doesObjectExistV2($this->bucket, $this->prefixer->prefixPath($path), $this->options);
|
||||
return $this->client->doesObjectExistV2($this->bucket, $this->prefixer->prefixPath($path), false, $this->options);
|
||||
} catch (Throwable $exception) {
|
||||
throw UnableToCheckFileExistence::forLocation($path, $exception);
|
||||
}
|
||||
|
19
vendor/league/iso3166/LICENSE
vendored
19
vendor/league/iso3166/LICENSE
vendored
@@ -1,19 +0,0 @@
|
||||
Copyright (C) Rob Bast <rob.bast@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
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.
|
35
vendor/league/iso3166/composer.json
vendored
35
vendor/league/iso3166/composer.json
vendored
@@ -1,35 +0,0 @@
|
||||
{
|
||||
"name": "league/iso3166",
|
||||
"description": "ISO 3166-1 PHP Library",
|
||||
"autoload": {
|
||||
"psr-4": { "League\\ISO3166\\": "src" }
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": { "League\\ISO3166\\": "tests" }
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.3|^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"scripts": {
|
||||
"cs-review": "php-cs-fixer fix --verbose --diff --dry-run",
|
||||
"cs-fix": "php-cs-fixer fix --verbose",
|
||||
"test": "phpunit"
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": { "dev-master": "3.x-dev" }
|
||||
},
|
||||
"keywords": ["ISO 3166", "ISO", "3166", "3166-1", "countries", "library"],
|
||||
"homepage": "https://github.com/thephpleague/iso3166",
|
||||
"license": "MIT",
|
||||
"authors": [{
|
||||
"name": "Rob Bast",
|
||||
"email": "rob.bast@gmail.com"
|
||||
}],
|
||||
"support": {
|
||||
"issues": "https://github.com/thephpleague/iso3166/issues",
|
||||
"source": "https://github.com/thephpleague/iso3166"
|
||||
}
|
||||
}
|
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* (c) Rob Bast <rob.bast@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace League\ISO3166\Exception;
|
||||
|
||||
final class DomainException extends \DomainException implements ISO3166Exception
|
||||
{
|
||||
}
|
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* (c) Rob Bast <rob.bast@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace League\ISO3166\Exception;
|
||||
|
||||
interface ISO3166Exception extends \Throwable
|
||||
{
|
||||
}
|
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* (c) Rob Bast <rob.bast@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace League\ISO3166\Exception;
|
||||
|
||||
final class OutOfBoundsException extends \OutOfBoundsException implements ISO3166Exception
|
||||
{
|
||||
}
|
53
vendor/league/iso3166/src/Guards.php
vendored
53
vendor/league/iso3166/src/Guards.php
vendored
@@ -1,53 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* (c) Rob Bast <rob.bast@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace League\ISO3166;
|
||||
|
||||
use League\ISO3166\Exception\DomainException;
|
||||
|
||||
final class Guards
|
||||
{
|
||||
/**
|
||||
* Assert that input looks like an alpha2 key.
|
||||
*
|
||||
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha2 key
|
||||
*/
|
||||
public static function guardAgainstInvalidAlpha2(string $alpha2): void
|
||||
{
|
||||
if (1 !== preg_match('/^[a-zA-Z]{2}$/', $alpha2)) {
|
||||
throw new DomainException(sprintf('Not a valid alpha2 key: %s', $alpha2));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert that input looks like an alpha3 key.
|
||||
*
|
||||
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha3 key
|
||||
*/
|
||||
public static function guardAgainstInvalidAlpha3(string $alpha3): void
|
||||
{
|
||||
if (1 !== preg_match('/^[a-zA-Z]{3}$/', $alpha3)) {
|
||||
throw new DomainException(sprintf('Not a valid alpha3 key: %s', $alpha3));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert that input looks like a numeric key.
|
||||
*
|
||||
* @throws \League\ISO3166\Exception\DomainException if input does not look like a numeric key
|
||||
*/
|
||||
public static function guardAgainstInvalidNumeric(string $numeric): void
|
||||
{
|
||||
if (1 !== preg_match('/^\d{3}$/', $numeric)) {
|
||||
throw new DomainException(sprintf('Not a valid numeric key: %s', $numeric));
|
||||
}
|
||||
}
|
||||
}
|
2437
vendor/league/iso3166/src/ISO3166.php
vendored
2437
vendor/league/iso3166/src/ISO3166.php
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,62 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* (c) Rob Bast <rob.bast@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace League\ISO3166;
|
||||
|
||||
interface ISO3166DataProvider
|
||||
{
|
||||
/**
|
||||
* Lookup ISO3166-1 data by name identifier.
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function name(string $name): array;
|
||||
|
||||
/**
|
||||
* Lookup ISO3166-1 data by alpha2 identifier.
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha2 key
|
||||
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function alpha2(string $alpha2): array;
|
||||
|
||||
/**
|
||||
* Lookup ISO3166-1 data by alpha3 identifier.
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha3 key
|
||||
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function alpha3(string $alpha3): array;
|
||||
|
||||
/**
|
||||
* Lookup ISO3166-1 data by numeric identifier (numerical string, that is).
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* @throws \League\ISO3166\Exception\DomainException if input does not look like a numeric key
|
||||
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function numeric(string $numeric): array;
|
||||
}
|
@@ -1,57 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* (c) Rob Bast <rob.bast@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace League\ISO3166;
|
||||
|
||||
use League\ISO3166\Exception\DomainException;
|
||||
|
||||
final class ISO3166DataValidator
|
||||
{
|
||||
/**
|
||||
* @param array<array<string, mixed>> $data
|
||||
*
|
||||
* @return array<array<string, mixed>>
|
||||
*/
|
||||
public function validate(array $data): array
|
||||
{
|
||||
foreach ($data as $entry) {
|
||||
$this->assertEntryHasRequiredKeys($entry);
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $entry
|
||||
*
|
||||
* @throws \League\ISO3166\Exception\DomainException if given data entry does not have all the required keys
|
||||
*/
|
||||
private function assertEntryHasRequiredKeys(array $entry): void
|
||||
{
|
||||
if (!isset($entry[ISO3166::KEY_ALPHA2])) {
|
||||
throw new DomainException('Each data entry must have a valid alpha2 key.');
|
||||
}
|
||||
|
||||
Guards::guardAgainstInvalidAlpha2($entry[ISO3166::KEY_ALPHA2]);
|
||||
|
||||
if (!isset($entry[ISO3166::KEY_ALPHA3])) {
|
||||
throw new DomainException('Each data entry must have a valid alpha3 key.');
|
||||
}
|
||||
|
||||
Guards::guardAgainstInvalidAlpha3($entry[ISO3166::KEY_ALPHA3]);
|
||||
|
||||
if (!isset($entry[ISO3166::KEY_NUMERIC])) {
|
||||
throw new DomainException('Each data entry must have a valid numeric key.');
|
||||
}
|
||||
|
||||
Guards::guardAgainstInvalidNumeric($entry[ISO3166::KEY_NUMERIC]);
|
||||
}
|
||||
}
|
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"require": {
|
||||
"friendsofphp/php-cs-fixer": "*"
|
||||
}
|
||||
}
|
2047
vendor/league/iso3166/tools/php-cs-fixer/composer.lock
generated
vendored
2047
vendor/league/iso3166/tools/php-cs-fixer/composer.lock
generated
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"require": {
|
||||
"phpstan/phpstan": "*",
|
||||
"phpstan/phpstan-php-parser": "*",
|
||||
"phpstan/phpstan-deprecation-rules": "*",
|
||||
"phpstan/phpstan-strict-rules": "*"
|
||||
}
|
||||
}
|
227
vendor/league/iso3166/tools/phpstan/composer.lock
generated
vendored
227
vendor/league/iso3166/tools/phpstan/composer.lock
generated
vendored
@@ -1,227 +0,0 @@
|
||||
{
|
||||
"_readme": [
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "e1ff6a9f4c3da4f73ac5b2ab1e65d70a",
|
||||
"packages": [
|
||||
{
|
||||
"name": "phpstan/phpstan",
|
||||
"version": "1.8.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpstan.git",
|
||||
"reference": "eed4c9da531f6ebb4787235b6fb486e2c20f34e5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/eed4c9da531f6ebb4787235b6fb486e2c20f34e5",
|
||||
"reference": "eed4c9da531f6ebb4787235b6fb486e2c20f34e5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.2|^8.0"
|
||||
},
|
||||
"conflict": {
|
||||
"phpstan/phpstan-shim": "*"
|
||||
},
|
||||
"bin": [
|
||||
"phpstan",
|
||||
"phpstan.phar"
|
||||
],
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"description": "PHPStan - PHP Static Analysis Tool",
|
||||
"keywords": [
|
||||
"dev",
|
||||
"static analysis"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/phpstan/phpstan/issues",
|
||||
"source": "https://github.com/phpstan/phpstan/tree/1.8.4"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/ondrejmirtes",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/phpstan",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2022-09-03T13:08:04+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpstan-deprecation-rules",
|
||||
"version": "1.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpstan-deprecation-rules.git",
|
||||
"reference": "e5ccafb0dd8d835dd65d8d7a1a0d2b1b75414682"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/e5ccafb0dd8d835dd65d8d7a1a0d2b1b75414682",
|
||||
"reference": "e5ccafb0dd8d835dd65d8d7a1a0d2b1b75414682",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0",
|
||||
"phpstan/phpstan": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"php-parallel-lint/php-parallel-lint": "^1.2",
|
||||
"phpstan/phpstan-phpunit": "^1.0",
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"type": "phpstan-extension",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0-dev"
|
||||
},
|
||||
"phpstan": {
|
||||
"includes": [
|
||||
"rules.neon"
|
||||
]
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PHPStan\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"description": "PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.",
|
||||
"support": {
|
||||
"issues": "https://github.com/phpstan/phpstan-deprecation-rules/issues",
|
||||
"source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/1.0.0"
|
||||
},
|
||||
"time": "2021-09-23T11:02:21+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpstan-php-parser",
|
||||
"version": "1.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpstan-php-parser.git",
|
||||
"reference": "1c7670dd92da864b5d019f22d9f512a6ae18b78e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan-php-parser/zipball/1c7670dd92da864b5d019f22d9f512a6ae18b78e",
|
||||
"reference": "1c7670dd92da864b5d019f22d9f512a6ae18b78e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0",
|
||||
"phpstan/phpstan": "^1.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"php-parallel-lint/php-parallel-lint": "^1.2",
|
||||
"phpstan/phpstan-phpunit": "^1.0",
|
||||
"phpstan/phpstan-strict-rules": "^1.0",
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"type": "phpstan-extension",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.1-dev"
|
||||
},
|
||||
"phpstan": {
|
||||
"includes": [
|
||||
"extension.neon"
|
||||
]
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PHPStan\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"description": "PHP-Parser extensions for PHPStan",
|
||||
"support": {
|
||||
"issues": "https://github.com/phpstan/phpstan-php-parser/issues",
|
||||
"source": "https://github.com/phpstan/phpstan-php-parser/tree/1.1.0"
|
||||
},
|
||||
"time": "2021-12-16T19:43:32+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpstan-strict-rules",
|
||||
"version": "1.4.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpstan-strict-rules.git",
|
||||
"reference": "431b3d6e8040075de196680cd5bc95735987b4ae"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/431b3d6e8040075de196680cd5bc95735987b4ae",
|
||||
"reference": "431b3d6e8040075de196680cd5bc95735987b4ae",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.2 || ^8.0",
|
||||
"phpstan/phpstan": "^1.8.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"nikic/php-parser": "^4.13.0",
|
||||
"php-parallel-lint/php-parallel-lint": "^1.2",
|
||||
"phpstan/phpstan-phpunit": "^1.0",
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"type": "phpstan-extension",
|
||||
"extra": {
|
||||
"phpstan": {
|
||||
"includes": [
|
||||
"rules.neon"
|
||||
]
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PHPStan\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"description": "Extra strict and opinionated rules for PHPStan",
|
||||
"support": {
|
||||
"issues": "https://github.com/phpstan/phpstan-strict-rules/issues",
|
||||
"source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.4.3"
|
||||
},
|
||||
"time": "2022-08-26T15:05:46+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": [],
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": [],
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.2.0"
|
||||
}
|
Reference in New Issue
Block a user