From 7fbaf8537b7afe7e016ca89206ecee325792e84e Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Thu, 23 Dec 2021 10:44:23 +0000 Subject: [PATCH] Begin work to make codebase more type-safe --- composer.json | 7 +- composer.lock | 3064 ++++++++++++++++- .../src/AvatarProviders/UiAvatarsProvider.php | 3 +- .../admin/src/Navigation/NavigationItem.php | 4 + packages/admin/src/Pages/Page.php | 1 + packages/admin/src/Resources/Form.php | 4 + packages/admin/src/Resources/Table.php | 4 + .../Commands/Concerns/CanValidateInput.php | 3 +- .../Components/Concerns/BelongsToModel.php | 4 +- .../src/Components/Concerns/CanBeAccepted.php | 4 +- .../Concerns/CanBeAutocapitalized.php | 8 +- .../Concerns/CanBeAutocompleted.php | 8 +- .../Components/Concerns/CanBeAutofocused.php | 6 +- .../src/Components/Concerns/CanBeDisabled.php | 6 +- .../src/Components/Concerns/CanBeHidden.php | 15 +- .../src/Components/Concerns/CanBeInline.php | 6 +- .../Concerns/CanBeLengthConstrained.php | 10 +- .../Components/Concerns/CanBeValidated.php | 44 +- .../Concerns/CanLimitItemsLength.php | 9 +- .../Concerns/HasExtraAlpineAttributes.php | 5 +- .../Concerns/HasExtraAttributes.php | 6 +- .../Concerns/HasFileAttachments.php | 38 +- .../src/Components/Concerns/HasHelperText.php | 6 +- .../forms/src/Components/Concerns/HasHint.php | 6 +- .../forms/src/Components/Concerns/HasId.php | 6 +- .../src/Components/Concerns/HasLabel.php | 10 +- .../src/Components/Concerns/HasMaxWidth.php | 6 +- .../Components/Concerns/HasPlaceholder.php | 6 +- .../src/Components/Concerns/HasState.php | 25 +- .../Concerns/InteractsWithToolbarButtons.php | 4 +- .../forms/src/Components/MarkdownEditor.php | 4 +- .../src/Components/MultipleFileUpload.php | 4 + packages/forms/src/Components/RichEditor.php | 4 +- .../forms/src/Components/TextInput/Mask.php | 3 +- packages/forms/src/Concerns/HasComponents.php | 2 +- .../SpatieMediaLibraryFileUpload.php | 5 +- .../SpatieMediaLibraryMultipleFileUpload.php | 5 +- .../src/Forms/Components/SpatieTagsInput.php | 5 +- .../src/Tables/Columns/SpatieTagsColumn.php | 2 +- phpstan.neon | 6 - phpstan.neon.dist | 10 + 41 files changed, 3117 insertions(+), 261 deletions(-) delete mode 100644 phpstan.neon create mode 100644 phpstan.neon.dist diff --git a/composer.json b/composer.json index 9f1a0cd0ed..77e1875079 100644 --- a/composer.json +++ b/composer.json @@ -6,15 +6,20 @@ "php": "^8.0" }, "require-dev": { + "akaunting/laravel-money": "^1.2", "blade-ui-kit/blade-heroicons": "^1.2", "danharrin/livewire-rate-limiting": "^0.3.0", + "doctrine/dbal": "^3.2", "laravel/ui": "^3.3", + "league/flysystem-aws-s3-v3": "^1.0", + "nunomaduro/larastan": "^1.0", "orchestra/testbench": "^6.0", "pestphp/pest": "^1.17", "pestphp/pest-plugin-livewire": "^1.0", "pestphp/pest-plugin-parallel": "^0.3", - "phpstan/phpstan": "^0.12", + "spatie/laravel-medialibrary": "^9.11", "spatie/laravel-package-tools": "^1.9", + "spatie/laravel-tags": "^4.2", "symplify/monorepo-builder": "^9.0" }, "autoload-dev": { diff --git a/composer.lock b/composer.lock index d7188fb3f6..71bd1524a2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,9 +4,215 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "25e2ce89ca22cc7abdaa9dbedcd5935e", + "content-hash": "bd66818b8ef70d454ff46b0a7ba9431e", "packages": [], "packages-dev": [ + { + "name": "akaunting/laravel-money", + "version": "1.2.3", + "source": { + "type": "git", + "url": "https://github.com/akaunting/laravel-money.git", + "reference": "e97cbb9735540fac995e5e0b17395ef4ba33ac38" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/akaunting/laravel-money/zipball/e97cbb9735540fac995e5e0b17395ef4ba33ac38", + "reference": "e97cbb9735540fac995e5e0b17395ef4ba33ac38", + "shasum": "" + }, + "require": { + "illuminate/support": ">=5.4", + "illuminate/view": ">=5.4", + "php": ">=5.6.4" + }, + "require-dev": { + "mockery/mockery": ">=1.0", + "phpunit/phpunit": ">=5.7" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Akaunting\\Money\\Provider" + ] + } + }, + "autoload": { + "psr-4": { + "Akaunting\\Money\\": "./src" + }, + "files": [ + "src/helpers.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Denis Duliçi", + "email": "info@akaunting.com", + "homepage": "https://akaunting.com", + "role": "Developer" + } + ], + "description": "Currency formatting and conversion package for Laravel", + "keywords": [ + "convert", + "currency", + "format", + "laravel", + "money" + ], + "support": { + "issues": "https://github.com/akaunting/laravel-money/issues", + "source": "https://github.com/akaunting/laravel-money/tree/1.2.3" + }, + "time": "2021-09-28T06:19:54+00:00" + }, + { + "name": "aws/aws-crt-php", + "version": "v1.0.2", + "source": { + "type": "git", + "url": "https://github.com/awslabs/aws-crt-php.git", + "reference": "3942776a8c99209908ee0b287746263725685732" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/3942776a8c99209908ee0b287746263725685732", + "reference": "3942776a8c99209908ee0b287746263725685732", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35|^5.4.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "AWS SDK Common Runtime Team", + "email": "aws-sdk-common-runtime@amazon.com" + } + ], + "description": "AWS Common Runtime for PHP", + "homepage": "http://aws.amazon.com/sdkforphp", + "keywords": [ + "amazon", + "aws", + "crt", + "sdk" + ], + "support": { + "issues": "https://github.com/awslabs/aws-crt-php/issues", + "source": "https://github.com/awslabs/aws-crt-php/tree/v1.0.2" + }, + "time": "2021-09-03T22:57:30+00:00" + }, + { + "name": "aws/aws-sdk-php", + "version": "3.208.7", + "source": { + "type": "git", + "url": "https://github.com/aws/aws-sdk-php.git", + "reference": "41a800dd7cf5c4ac0ef9bf8db01e838ab6a3698c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/41a800dd7cf5c4ac0ef9bf8db01e838ab6a3698c", + "reference": "41a800dd7cf5c4ac0ef9bf8db01e838ab6a3698c", + "shasum": "" + }, + "require": { + "aws/aws-crt-php": "^1.0.2", + "ext-json": "*", + "ext-pcre": "*", + "ext-simplexml": "*", + "guzzlehttp/guzzle": "^5.3.3|^6.2.1|^7.0", + "guzzlehttp/promises": "^1.4.0", + "guzzlehttp/psr7": "^1.7.0|^2.0", + "mtdowling/jmespath.php": "^2.6", + "php": ">=5.5" + }, + "require-dev": { + "andrewsville/php-token-reflection": "^1.4", + "aws/aws-php-sns-message-validator": "~1.0", + "behat/behat": "~3.0", + "doctrine/cache": "~1.4", + "ext-dom": "*", + "ext-openssl": "*", + "ext-pcntl": "*", + "ext-sockets": "*", + "nette/neon": "^2.3", + "paragonie/random_compat": ">= 2", + "phpunit/phpunit": "^4.8.35|^5.4.3", + "psr/cache": "^1.0", + "psr/simple-cache": "^1.0", + "sebastian/comparator": "^1.2.3" + }, + "suggest": { + "aws/aws-php-sns-message-validator": "To validate incoming SNS notifications", + "doctrine/cache": "To use the DoctrineCacheAdapter", + "ext-curl": "To send requests using cURL", + "ext-openssl": "Allows working with CloudFront private distributions and verifying received SNS messages", + "ext-sockets": "To use client-side monitoring" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "Aws\\": "src/" + }, + "files": [ + "src/functions.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Amazon Web Services", + "homepage": "http://aws.amazon.com" + } + ], + "description": "AWS SDK for PHP - Use Amazon Web Services in your PHP project", + "homepage": "http://aws.amazon.com/sdkforphp", + "keywords": [ + "amazon", + "aws", + "cloud", + "dynamodb", + "ec2", + "glacier", + "s3", + "sdk" + ], + "support": { + "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", + "issues": "https://github.com/aws/aws-sdk-php/issues", + "source": "https://github.com/aws/aws-sdk-php/tree/3.208.7" + }, + "time": "2021-12-21T19:16:39+00:00" + }, { "name": "blade-ui-kit/blade-heroicons", "version": "1.2.1", @@ -312,6 +518,621 @@ ], "time": "2021-08-15T20:50:18+00:00" }, + { + "name": "composer/ca-bundle", + "version": "1.3.1", + "source": { + "type": "git", + "url": "https://github.com/composer/ca-bundle.git", + "reference": "4c679186f2aca4ab6a0f1b0b9cf9252decb44d0b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/4c679186f2aca4ab6a0f1b0b9cf9252decb44d0b", + "reference": "4c679186f2aca4ab6a0f1b0b9cf9252decb44d0b", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.55", + "psr/log": "^1.0", + "symfony/phpunit-bridge": "^4.2 || ^5", + "symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/ca-bundle/issues", + "source": "https://github.com/composer/ca-bundle/tree/1.3.1" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-10-28T20:44:15+00:00" + }, + { + "name": "composer/composer", + "version": "2.2.1", + "source": { + "type": "git", + "url": "https://github.com/composer/composer.git", + "reference": "bbc265e16561ab8e0f5e7cac395ea72640251f0c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/composer/zipball/bbc265e16561ab8e0f5e7cac395ea72640251f0c", + "reference": "bbc265e16561ab8e0f5e7cac395ea72640251f0c", + "shasum": "" + }, + "require": { + "composer/ca-bundle": "^1.0", + "composer/metadata-minifier": "^1.0", + "composer/pcre": "^1.0", + "composer/semver": "^3.0", + "composer/spdx-licenses": "^1.2", + "composer/xdebug-handler": "^2.0", + "justinrainbow/json-schema": "^5.2.11", + "php": "^5.3.2 || ^7.0 || ^8.0", + "psr/log": "^1.0 || ^2.0", + "react/promise": "^1.2 || ^2.7", + "seld/jsonlint": "^1.4", + "seld/phar-utils": "^1.0", + "symfony/console": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0", + "symfony/filesystem": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0", + "symfony/finder": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0", + "symfony/process": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0" + }, + "require-dev": { + "phpspec/prophecy": "^1.10", + "symfony/phpunit-bridge": "^4.2 || ^5.0 || ^6.0" + }, + "suggest": { + "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages", + "ext-zip": "Enabling the zip extension allows you to unzip archives", + "ext-zlib": "Allow gzip compression of HTTP requests" + }, + "bin": [ + "bin/composer" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.2-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\": "src/Composer" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "https://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.", + "homepage": "https://getcomposer.org/", + "keywords": [ + "autoload", + "dependency", + "package" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/composer/issues", + "source": "https://github.com/composer/composer/tree/2.2.1" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-12-22T21:21:31+00:00" + }, + { + "name": "composer/metadata-minifier", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/composer/metadata-minifier.git", + "reference": "c549d23829536f0d0e984aaabbf02af91f443207" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/metadata-minifier/zipball/c549d23829536f0d0e984aaabbf02af91f443207", + "reference": "c549d23829536f0d0e984aaabbf02af91f443207", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "composer/composer": "^2", + "phpstan/phpstan": "^0.12.55", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\MetadataMinifier\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Small utility library that handles metadata minification and expansion.", + "keywords": [ + "composer", + "compression" + ], + "support": { + "issues": "https://github.com/composer/metadata-minifier/issues", + "source": "https://github.com/composer/metadata-minifier/tree/1.0.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-04-07T13:37:33+00:00" + }, + { + "name": "composer/package-versions-deprecated", + "version": "1.11.99.4", + "source": { + "type": "git", + "url": "https://github.com/composer/package-versions-deprecated.git", + "reference": "b174585d1fe49ceed21928a945138948cb394600" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b174585d1fe49ceed21928a945138948cb394600", + "reference": "b174585d1fe49ceed21928a945138948cb394600", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.1.0 || ^2.0", + "php": "^7 || ^8" + }, + "replace": { + "ocramius/package-versions": "1.11.99" + }, + "require-dev": { + "composer/composer": "^1.9.3 || ^2.0@dev", + "ext-zip": "^1.13", + "phpunit/phpunit": "^6.5 || ^7" + }, + "type": "composer-plugin", + "extra": { + "class": "PackageVersions\\Installer", + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "PackageVersions\\": "src/PackageVersions" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be" + } + ], + "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", + "support": { + "issues": "https://github.com/composer/package-versions-deprecated/issues", + "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.4" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-09-13T08:41:34+00:00" + }, + { + "name": "composer/pcre", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/3d322d715c43a1ac36c7fe215fa59336265500f2", + "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/1.0.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-12-06T15:17:27+00:00" + }, + { + "name": "composer/semver", + "version": "3.2.6", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "83e511e247de329283478496f7a1e114c9517506" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/83e511e247de329283478496f7a1e114c9517506", + "reference": "83e511e247de329283478496f7a1e114c9517506", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.54", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.2.6" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-10-25T11:34:17+00:00" + }, + { + "name": "composer/spdx-licenses", + "version": "1.5.6", + "source": { + "type": "git", + "url": "https://github.com/composer/spdx-licenses.git", + "reference": "a30d487169d799745ca7280bc90fdfa693536901" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/a30d487169d799745ca7280bc90fdfa693536901", + "reference": "a30d487169d799745ca7280bc90fdfa693536901", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.55", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Spdx\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "SPDX licenses list and validation library.", + "keywords": [ + "license", + "spdx", + "validator" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/spdx-licenses/issues", + "source": "https://github.com/composer/spdx-licenses/tree/1.5.6" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-11-18T10:14:14+00:00" + }, + { + "name": "composer/xdebug-handler", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/composer/xdebug-handler.git", + "reference": "6555461e76962fd0379c444c46fd558a0fcfb65e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6555461e76962fd0379c444c46fd558a0fcfb65e", + "reference": "6555461e76962fd0379c444c46fd558a0fcfb65e", + "shasum": "" + }, + "require": { + "composer/pcre": "^1", + "php": "^5.3.2 || ^7.0 || ^8.0", + "psr/log": "^1 || ^2 || ^3" + }, + "require-dev": { + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^4.2 || ^5.0 || ^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Composer\\XdebugHandler\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "John Stevenson", + "email": "john-stevenson@blueyonder.co.uk" + } + ], + "description": "Restarts a process without Xdebug.", + "keywords": [ + "Xdebug", + "performance" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/xdebug-handler/issues", + "source": "https://github.com/composer/xdebug-handler/tree/2.0.3" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-12-08T13:07:32+00:00" + }, { "name": "danharrin/livewire-rate-limiting", "version": "v0.3.0", @@ -441,6 +1262,353 @@ }, "time": "2021-08-13T13:06:58+00:00" }, + { + "name": "doctrine/cache", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/cache.git", + "reference": "331b4d5dbaeab3827976273e9356b3b453c300ce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/cache/zipball/331b4d5dbaeab3827976273e9356b3b453c300ce", + "reference": "331b4d5dbaeab3827976273e9356b3b453c300ce", + "shasum": "" + }, + "require": { + "php": "~7.1 || ^8.0" + }, + "conflict": { + "doctrine/common": ">2.2,<2.4" + }, + "require-dev": { + "alcaeus/mongo-php-adapter": "^1.1", + "cache/integration-tests": "dev-master", + "doctrine/coding-standard": "^8.0", + "mongodb/mongodb": "^1.1", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "predis/predis": "~1.0", + "psr/cache": "^1.0 || ^2.0 || ^3.0", + "symfony/cache": "^4.4 || ^5.2 || ^6.0@dev", + "symfony/var-exporter": "^4.4 || ^5.2 || ^6.0@dev" + }, + "suggest": { + "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.", + "homepage": "https://www.doctrine-project.org/projects/cache.html", + "keywords": [ + "abstraction", + "apcu", + "cache", + "caching", + "couchdb", + "memcached", + "php", + "redis", + "xcache" + ], + "support": { + "issues": "https://github.com/doctrine/cache/issues", + "source": "https://github.com/doctrine/cache/tree/2.1.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcache", + "type": "tidelift" + } + ], + "time": "2021-07-17T14:49:29+00:00" + }, + { + "name": "doctrine/dbal", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/dbal.git", + "reference": "5d54f63541d7bed1156cb5c9b79274ced61890e4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/5d54f63541d7bed1156cb5c9b79274ced61890e4", + "reference": "5d54f63541d7bed1156cb5c9b79274ced61890e4", + "shasum": "" + }, + "require": { + "composer/package-versions-deprecated": "^1.11.99", + "doctrine/cache": "^1.11|^2.0", + "doctrine/deprecations": "^0.5.3", + "doctrine/event-manager": "^1.0", + "php": "^7.3 || ^8.0", + "psr/cache": "^1|^2|^3", + "psr/log": "^1|^2|^3" + }, + "require-dev": { + "doctrine/coding-standard": "9.0.0", + "jetbrains/phpstorm-stubs": "2021.1", + "phpstan/phpstan": "1.2.0", + "phpstan/phpstan-strict-rules": "^1.1", + "phpunit/phpunit": "9.5.10", + "psalm/plugin-phpunit": "0.16.1", + "squizlabs/php_codesniffer": "3.6.1", + "symfony/cache": "^5.2|^6.0", + "symfony/console": "^2.0.5|^3.0|^4.0|^5.0|^6.0", + "vimeo/psalm": "4.13.0" + }, + "suggest": { + "symfony/console": "For helpful console commands such as SQL execution and import of files." + }, + "bin": [ + "bin/doctrine-dbal" + ], + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\DBAL\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + } + ], + "description": "Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.", + "homepage": "https://www.doctrine-project.org/projects/dbal.html", + "keywords": [ + "abstraction", + "database", + "db2", + "dbal", + "mariadb", + "mssql", + "mysql", + "oci8", + "oracle", + "pdo", + "pgsql", + "postgresql", + "queryobject", + "sasql", + "sql", + "sqlite", + "sqlserver", + "sqlsrv" + ], + "support": { + "issues": "https://github.com/doctrine/dbal/issues", + "source": "https://github.com/doctrine/dbal/tree/3.2.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fdbal", + "type": "tidelift" + } + ], + "time": "2021-11-26T21:00:12+00:00" + }, + { + "name": "doctrine/deprecations", + "version": "v0.5.3", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "9504165960a1f83cc1480e2be1dd0a0478561314" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/9504165960a1f83cc1480e2be1dd0a0478561314", + "reference": "9504165960a1f83cc1480e2be1dd0a0478561314", + "shasum": "" + }, + "require": { + "php": "^7.1|^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^6.0|^7.0|^8.0", + "phpunit/phpunit": "^7.0|^8.0|^9.0", + "psr/log": "^1.0" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/v0.5.3" + }, + "time": "2021-03-21T12:59:47+00:00" + }, + { + "name": "doctrine/event-manager", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/event-manager.git", + "reference": "41370af6a30faa9dc0368c4a6814d596e81aba7f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/event-manager/zipball/41370af6a30faa9dc0368c4a6814d596e81aba7f", + "reference": "41370af6a30faa9dc0368c4a6814d596e81aba7f", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/common": "<2.9@dev" + }, + "require-dev": { + "doctrine/coding-standard": "^6.0", + "phpunit/phpunit": "^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\": "lib/Doctrine/Common" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + }, + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" + } + ], + "description": "The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.", + "homepage": "https://www.doctrine-project.org/projects/event-manager.html", + "keywords": [ + "event", + "event dispatcher", + "event manager", + "event system", + "events" + ], + "support": { + "issues": "https://github.com/doctrine/event-manager/issues", + "source": "https://github.com/doctrine/event-manager/tree/1.1.x" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fevent-manager", + "type": "tidelift" + } + ], + "time": "2020-05-29T18:28:51+00:00" + }, { "name": "doctrine/inflector", "version": "2.0.4", @@ -1061,6 +2229,214 @@ ], "time": "2021-11-21T21:41:47+00:00" }, + { + "name": "guzzlehttp/guzzle", + "version": "7.4.1", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "ee0a041b1760e6a53d2a39c8c34115adc2af2c79" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ee0a041b1760e6a53d2a39c8c34115adc2af2c79", + "reference": "ee0a041b1760e6a53d2a39c8c34115adc2af2c79", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5", + "guzzlehttp/psr7": "^1.8.3 || ^2.1", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "ext-curl": "*", + "php-http/client-integration-tests": "^3.0", + "phpunit/phpunit": "^8.5.5 || ^9.3.5", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.4-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.4.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2021-12-06T18:43:05+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "1.5.1", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.4 || ^5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.5-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/1.5.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2021-10-22T20:56:57+00:00" + }, { "name": "guzzlehttp/psr7", "version": "2.1.0", @@ -1228,17 +2604,171 @@ "time": "2020-07-09T08:09:16+00:00" }, { - "name": "laravel/framework", - "version": "v8.75.0", + "name": "intervention/image", + "version": "2.7.1", "source": { "type": "git", - "url": "https://github.com/laravel/framework.git", - "reference": "0bb91d3176357da232da69762a64b0e0a0988637" + "url": "https://github.com/Intervention/image.git", + "reference": "744ebba495319501b873a4e48787759c72e3fb8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/0bb91d3176357da232da69762a64b0e0a0988637", - "reference": "0bb91d3176357da232da69762a64b0e0a0988637", + "url": "https://api.github.com/repos/Intervention/image/zipball/744ebba495319501b873a4e48787759c72e3fb8c", + "reference": "744ebba495319501b873a4e48787759c72e3fb8c", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "guzzlehttp/psr7": "~1.1 || ^2.0", + "php": ">=5.4.0" + }, + "require-dev": { + "mockery/mockery": "~0.9.2", + "phpunit/phpunit": "^4.8 || ^5.7 || ^7.5.15" + }, + "suggest": { + "ext-gd": "to use GD library based image processing.", + "ext-imagick": "to use Imagick based image processing.", + "intervention/imagecache": "Caching extension for the Intervention Image library" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + }, + "laravel": { + "providers": [ + "Intervention\\Image\\ImageServiceProvider" + ], + "aliases": { + "Image": "Intervention\\Image\\Facades\\Image" + } + } + }, + "autoload": { + "psr-4": { + "Intervention\\Image\\": "src/Intervention/Image" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Oliver Vogel", + "email": "oliver@olivervogel.com", + "homepage": "http://olivervogel.com/" + } + ], + "description": "Image handling and manipulation library with support for Laravel integration", + "homepage": "http://image.intervention.io/", + "keywords": [ + "gd", + "image", + "imagick", + "laravel", + "thumbnail", + "watermark" + ], + "support": { + "issues": "https://github.com/Intervention/image/issues", + "source": "https://github.com/Intervention/image/tree/2.7.1" + }, + "funding": [ + { + "url": "https://www.paypal.me/interventionphp", + "type": "custom" + }, + { + "url": "https://github.com/Intervention", + "type": "github" + } + ], + "time": "2021-12-16T16:49:26+00:00" + }, + { + "name": "justinrainbow/json-schema", + "version": "5.2.11", + "source": { + "type": "git", + "url": "https://github.com/justinrainbow/json-schema.git", + "reference": "2ab6744b7296ded80f8cc4f9509abbff393399aa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/2ab6744b7296ded80f8cc4f9509abbff393399aa", + "reference": "2ab6744b7296ded80f8cc4f9509abbff393399aa", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "~2.2.20||~2.15.1", + "json-schema/json-schema-test-suite": "1.2.0", + "phpunit/phpunit": "^4.8.35" + }, + "bin": [ + "bin/validate-json" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "JsonSchema\\": "src/JsonSchema/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bruno Prieto Reis", + "email": "bruno.p.reis@gmail.com" + }, + { + "name": "Justin Rainbow", + "email": "justin.rainbow@gmail.com" + }, + { + "name": "Igor Wiedler", + "email": "igor@wiedler.ch" + }, + { + "name": "Robert Schönthal", + "email": "seroscho@googlemail.com" + } + ], + "description": "A library to validate a json schema.", + "homepage": "https://github.com/justinrainbow/json-schema", + "keywords": [ + "json", + "schema" + ], + "support": { + "issues": "https://github.com/justinrainbow/json-schema/issues", + "source": "https://github.com/justinrainbow/json-schema/tree/5.2.11" + }, + "time": "2021-07-22T09:24:00+00:00" + }, + { + "name": "laravel/framework", + "version": "v8.77.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "994dbac5c6da856c77c81a411cff5b7d31519ca8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/994dbac5c6da856c77c81a411cff5b7d31519ca8", + "reference": "994dbac5c6da856c77c81a411cff5b7d31519ca8", "shasum": "" }, "require": { @@ -1256,7 +2786,7 @@ "opis/closure": "^3.6", "php": "^7.3|^8.0", "psr/container": "^1.0", - "psr/log": "^1.0 || ^2.0", + "psr/log": "^1.0|^2.0", "psr/simple-cache": "^1.0", "ramsey/uuid": "^4.2.2", "swiftmailer/swiftmailer": "^6.3", @@ -1397,7 +2927,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2021-12-07T14:55:46+00:00" + "time": "2021-12-21T20:22:29+00:00" }, { "name": "laravel/serializable-closure", @@ -1460,16 +2990,16 @@ }, { "name": "laravel/ui", - "version": "v3.4.0", + "version": "v3.4.1", "source": { "type": "git", "url": "https://github.com/laravel/ui.git", - "reference": "b3e804559bf3973ecca160a4ae1068e6c7c167c6" + "reference": "9a1e52442dd238647905b98d773d59e438eb9f9d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/ui/zipball/b3e804559bf3973ecca160a4ae1068e6c7c167c6", - "reference": "b3e804559bf3973ecca160a4ae1068e6c7c167c6", + "url": "https://api.github.com/repos/laravel/ui/zipball/9a1e52442dd238647905b98d773d59e438eb9f9d", + "reference": "9a1e52442dd238647905b98d773d59e438eb9f9d", "shasum": "" }, "require": { @@ -1515,9 +3045,9 @@ "ui" ], "support": { - "source": "https://github.com/laravel/ui/tree/v3.4.0" + "source": "https://github.com/laravel/ui/tree/v3.4.1" }, - "time": "2021-11-30T16:22:00+00:00" + "time": "2021-12-22T10:40:50+00:00" }, { "name": "league/commonmark", @@ -1798,6 +3328,122 @@ ], "time": "2021-12-09T09:40:50+00:00" }, + { + "name": "league/flysystem-aws-s3-v3", + "version": "1.0.29", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem-aws-s3-v3.git", + "reference": "4e25cc0582a36a786c31115e419c6e40498f6972" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/4e25cc0582a36a786c31115e419c6e40498f6972", + "reference": "4e25cc0582a36a786c31115e419c6e40498f6972", + "shasum": "" + }, + "require": { + "aws/aws-sdk-php": "^3.20.0", + "league/flysystem": "^1.0.40", + "php": ">=5.5.0" + }, + "require-dev": { + "henrikbjorn/phpspec-code-coverage": "~1.0.1", + "phpspec/phpspec": "^2.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Flysystem\\AwsS3v3\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frenky.net" + } + ], + "description": "Flysystem adapter for the AWS S3 SDK v3.x", + "support": { + "issues": "https://github.com/thephpleague/flysystem-aws-s3-v3/issues", + "source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/1.0.29" + }, + "time": "2020-10-08T18:58:37+00:00" + }, + { + "name": "league/glide", + "version": "1.7.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/glide.git", + "reference": "ae5e26700573cb678919d28e425a8b87bc71c546" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/glide/zipball/ae5e26700573cb678919d28e425a8b87bc71c546", + "reference": "ae5e26700573cb678919d28e425a8b87bc71c546", + "shasum": "" + }, + "require": { + "intervention/image": "^2.4", + "league/flysystem": "^1.0", + "php": "^7.2|^8.0", + "psr/http-message": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^1.3.3", + "phpunit/php-token-stream": "^3.1|^4.0", + "phpunit/phpunit": "^8.5|^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Glide\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jonathan Reinink", + "email": "jonathan@reinink.ca", + "homepage": "http://reinink.ca" + } + ], + "description": "Wonderfully easy on-demand image manipulation library with an HTTP based API.", + "homepage": "http://glide.thephpleague.com", + "keywords": [ + "ImageMagick", + "editing", + "gd", + "image", + "imagick", + "league", + "manipulation", + "processing" + ], + "support": { + "issues": "https://github.com/thephpleague/glide/issues", + "source": "https://github.com/thephpleague/glide/tree/1.7.0" + }, + "time": "2020-11-05T17:34:03+00:00" + }, { "name": "league/mime-type-detection", "version": "1.9.0", @@ -1856,16 +3502,16 @@ }, { "name": "livewire/livewire", - "version": "v2.8.1", + "version": "v2.8.2", "source": { "type": "git", "url": "https://github.com/livewire/livewire.git", - "reference": "0f846a93369109e445f0e5009741b1e19e6fa6f6" + "reference": "f6b1726d1068a5b7315f03dc4e58d5763b928374" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/livewire/livewire/zipball/0f846a93369109e445f0e5009741b1e19e6fa6f6", - "reference": "0f846a93369109e445f0e5009741b1e19e6fa6f6", + "url": "https://api.github.com/repos/livewire/livewire/zipball/f6b1726d1068a5b7315f03dc4e58d5763b928374", + "reference": "f6b1726d1068a5b7315f03dc4e58d5763b928374", "shasum": "" }, "require": { @@ -1916,7 +3562,7 @@ "description": "A front-end framework for Laravel.", "support": { "issues": "https://github.com/livewire/livewire/issues", - "source": "https://github.com/livewire/livewire/tree/v2.8.1" + "source": "https://github.com/livewire/livewire/tree/v2.8.2" }, "funding": [ { @@ -1924,7 +3570,78 @@ "type": "github" } ], - "time": "2021-12-02T01:31:26+00:00" + "time": "2021-12-10T19:37:40+00:00" + }, + { + "name": "maennchen/zipstream-php", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/maennchen/ZipStream-PHP.git", + "reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/c4c5803cc1f93df3d2448478ef79394a5981cc58", + "reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58", + "shasum": "" + }, + "require": { + "myclabs/php-enum": "^1.5", + "php": ">= 7.1", + "psr/http-message": "^1.0", + "symfony/polyfill-mbstring": "^1.0" + }, + "require-dev": { + "ext-zip": "*", + "guzzlehttp/guzzle": ">= 6.3", + "mikey179/vfsstream": "^1.6", + "phpunit/phpunit": ">= 7.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZipStream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paul Duncan", + "email": "pabs@pablotron.org" + }, + { + "name": "Jonatan Männchen", + "email": "jonatan@maennchen.ch" + }, + { + "name": "Jesse Donat", + "email": "donatj@gmail.com" + }, + { + "name": "András Kolesár", + "email": "kolesar@kolesar.hu" + } + ], + "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "keywords": [ + "stream", + "zip" + ], + "support": { + "issues": "https://github.com/maennchen/ZipStream-PHP/issues", + "source": "https://github.com/maennchen/ZipStream-PHP/tree/master" + }, + "funding": [ + { + "url": "https://opencollective.com/zipstream", + "type": "open_collective" + } + ], + "time": "2020-05-30T13:11:16+00:00" }, { "name": "mockery/mockery", @@ -2097,6 +3814,67 @@ ], "time": "2021-10-01T21:08:31+00:00" }, + { + "name": "mtdowling/jmespath.php", + "version": "2.6.1", + "source": { + "type": "git", + "url": "https://github.com/jmespath/jmespath.php.git", + "reference": "9b87907a81b87bc76d19a7fb2d61e61486ee9edb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/jmespath/jmespath.php/zipball/9b87907a81b87bc76d19a7fb2d61e61486ee9edb", + "reference": "9b87907a81b87bc76d19a7fb2d61e61486ee9edb", + "shasum": "" + }, + "require": { + "php": "^5.4 || ^7.0 || ^8.0", + "symfony/polyfill-mbstring": "^1.17" + }, + "require-dev": { + "composer/xdebug-handler": "^1.4 || ^2.0", + "phpunit/phpunit": "^4.8.36 || ^7.5.15" + }, + "bin": [ + "bin/jp.php" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "psr-4": { + "JmesPath\\": "src/" + }, + "files": [ + "src/JmesPath.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "Declaratively specify how to extract elements from a JSON document", + "keywords": [ + "json", + "jsonpath" + ], + "support": { + "issues": "https://github.com/jmespath/jmespath.php/issues", + "source": "https://github.com/jmespath/jmespath.php/tree/2.6.1" + }, + "time": "2021-06-14T00:11:39+00:00" + }, { "name": "myclabs/deep-copy", "version": "1.10.2", @@ -2155,6 +3933,66 @@ ], "time": "2020-11-13T09:40:50+00:00" }, + { + "name": "myclabs/php-enum", + "version": "1.8.3", + "source": { + "type": "git", + "url": "https://github.com/myclabs/php-enum.git", + "reference": "b942d263c641ddb5190929ff840c68f78713e937" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/php-enum/zipball/b942d263c641ddb5190929ff840c68f78713e937", + "reference": "b942d263c641ddb5190929ff840c68f78713e937", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.5", + "squizlabs/php_codesniffer": "1.*", + "vimeo/psalm": "^4.6.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "MyCLabs\\Enum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP Enum contributors", + "homepage": "https://github.com/myclabs/php-enum/graphs/contributors" + } + ], + "description": "PHP Enum implementation", + "homepage": "http://github.com/myclabs/php-enum", + "keywords": [ + "enum" + ], + "support": { + "issues": "https://github.com/myclabs/php-enum/issues", + "source": "https://github.com/myclabs/php-enum/tree/1.8.3" + }, + "funding": [ + { + "url": "https://github.com/mnapoli", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum", + "type": "tidelift" + } + ], + "time": "2021-07-05T08:18:36+00:00" + }, { "name": "nesbot/carbon", "version": "2.55.2", @@ -2541,6 +4379,104 @@ ], "time": "2021-09-20T15:06:32+00:00" }, + { + "name": "nunomaduro/larastan", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/larastan.git", + "reference": "3e0beabe8cf98373700f4d30cdfb2aa6badb9144" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/larastan/zipball/3e0beabe8cf98373700f4d30cdfb2aa6badb9144", + "reference": "3e0beabe8cf98373700f4d30cdfb2aa6badb9144", + "shasum": "" + }, + "require": { + "composer/composer": "^1.0 || ^2.0", + "ext-json": "*", + "illuminate/console": "^6.0 || ^7.0 || ^8.0 || ^9.0", + "illuminate/container": "^6.0 || ^7.0 || ^8.0 || ^9.0", + "illuminate/contracts": "^6.0 || ^7.0 || ^8.0 || ^9.0", + "illuminate/database": "^6.0 || ^7.0 || ^8.0 || ^9.0", + "illuminate/http": "^6.0 || ^7.0 || ^8.0 || ^9.0", + "illuminate/pipeline": "^6.0 || ^7.0 || ^8.0 || ^9.0", + "illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0", + "mockery/mockery": "^0.9 || ^1.0", + "php": "^7.2 || ^8.0", + "phpstan/phpstan": "^1.0", + "symfony/process": "^4.3 || ^5.0 || ^6.0" + }, + "require-dev": { + "nikic/php-parser": "^4.13.0", + "orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0", + "phpunit/phpunit": "^7.3 || ^8.2 || ^9.3" + }, + "suggest": { + "orchestra/testbench": "Using Larastan for analysing a package needs Testbench" + }, + "type": "phpstan-extension", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "NunoMaduro\\Larastan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Larastan - Discover bugs in your code without running it. A phpstan/phpstan wrapper for Laravel", + "keywords": [ + "PHPStan", + "code analyse", + "code analysis", + "larastan", + "laravel", + "package", + "php", + "static analysis" + ], + "support": { + "issues": "https://github.com/nunomaduro/larastan/issues", + "source": "https://github.com/nunomaduro/larastan/tree/1.0.2" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/canvural", + "type": "github" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2021-11-23T10:50:03+00:00" + }, { "name": "opis/closure", "version": "3.6.2", @@ -2608,22 +4544,22 @@ }, { "name": "orchestra/testbench", - "version": "v6.23.1", + "version": "v6.23.2", "source": { "type": "git", "url": "https://github.com/orchestral/testbench.git", - "reference": "c4c1e420ec0fd60ab149aca0ced194911a46b928" + "reference": "4187adf0fbfd7a4f9758a23233d3dfd041153fed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench/zipball/c4c1e420ec0fd60ab149aca0ced194911a46b928", - "reference": "c4c1e420ec0fd60ab149aca0ced194911a46b928", + "url": "https://api.github.com/repos/orchestral/testbench/zipball/4187adf0fbfd7a4f9758a23233d3dfd041153fed", + "reference": "4187adf0fbfd7a4f9758a23233d3dfd041153fed", "shasum": "" }, "require": { - "laravel/framework": "^8.71", + "laravel/framework": "^8.75", "mockery/mockery": "^1.4.4", - "orchestra/testbench-core": "^6.27.3", + "orchestra/testbench-core": "^6.27.4", "php": "^7.3 || ^8.0", "phpunit/phpunit": "^8.5.21 || ^9.5.10", "spatie/laravel-ray": "^1.26.2" @@ -2657,7 +4593,7 @@ ], "support": { "issues": "https://github.com/orchestral/testbench/issues", - "source": "https://github.com/orchestral/testbench/tree/v6.23.1" + "source": "https://github.com/orchestral/testbench/tree/v6.23.2" }, "funding": [ { @@ -2669,20 +4605,20 @@ "type": "liberapay" } ], - "time": "2021-12-03T22:47:04+00:00" + "time": "2021-12-23T00:22:47+00:00" }, { "name": "orchestra/testbench-core", - "version": "v6.27.3", + "version": "v6.27.4", "source": { "type": "git", "url": "https://github.com/orchestral/testbench-core.git", - "reference": "86867f7853e49a8f516951aa4e303230ebce40ac" + "reference": "a7244cb4ad3fa452cd0b0371c52c94c9f24f4541" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/86867f7853e49a8f516951aa4e303230ebce40ac", - "reference": "86867f7853e49a8f516951aa4e303230ebce40ac", + "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/a7244cb4ad3fa452cd0b0371c52c94c9f24f4541", + "reference": "a7244cb4ad3fa452cd0b0371c52c94c9f24f4541", "shasum": "" }, "require": { @@ -2692,7 +4628,7 @@ "vlucas/phpdotenv": "^5.1" }, "require-dev": { - "laravel/framework": "^8.71", + "laravel/framework": "^8.75", "laravel/laravel": "8.x-dev", "mockery/mockery": "^1.4.4", "orchestra/canvas": "^6.1", @@ -2701,7 +4637,7 @@ "symfony/process": "^5.0" }, "suggest": { - "laravel/framework": "Required for testing (^8.71).", + "laravel/framework": "Required for testing (^8.75).", "mockery/mockery": "Allow using Mockery for testing (^1.4.4).", "orchestra/testbench-browser-kit": "Allow using legacy Laravel BrowserKit for testing (^6.0).", "orchestra/testbench-dusk": "Allow using Laravel Dusk for testing (^6.0).", @@ -2759,7 +4695,7 @@ "type": "liberapay" } ], - "time": "2021-12-03T22:38:19+00:00" + "time": "2021-12-23T00:07:34+00:00" }, { "name": "pestphp/pest", @@ -3531,16 +5467,16 @@ }, { "name": "phpstan/phpstan", - "version": "0.12.99", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "b4d40f1d759942f523be267a1bab6884f46ca3f7" + "reference": "cbe085f9fdead5b6d62e4c022ca52dc9427a10ee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b4d40f1d759942f523be267a1bab6884f46ca3f7", - "reference": "b4d40f1d759942f523be267a1bab6884f46ca3f7", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/cbe085f9fdead5b6d62e4c022ca52dc9427a10ee", + "reference": "cbe085f9fdead5b6d62e4c022ca52dc9427a10ee", "shasum": "" }, "require": { @@ -3556,7 +5492,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "0.12-dev" + "dev-master": "1.2-dev" } }, "autoload": { @@ -3571,7 +5507,7 @@ "description": "PHPStan - PHP Static Analysis Tool", "support": { "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/0.12.99" + "source": "https://github.com/phpstan/phpstan/tree/1.2.0" }, "funding": [ { @@ -3591,7 +5527,7 @@ "type": "tidelift" } ], - "time": "2021-09-12T20:09:55+00:00" + "time": "2021-11-18T14:09:01+00:00" }, { "name": "phpunit/php-code-coverage", @@ -4067,6 +6003,55 @@ }, "time": "2021-10-28T11:13:42+00:00" }, + { + "name": "psr/cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/cache.git", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "support": { + "source": "https://github.com/php-fig/cache/tree/3.0.0" + }, + "time": "2021-02-03T23:26:27+00:00" + }, { "name": "psr/container", "version": "1.1.2", @@ -4165,6 +6150,58 @@ }, "time": "2019-01-08T18:20:26+00:00" }, + { + "name": "psr/http-client", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client/tree/master" + }, + "time": "2020-06-29T06:28:15+00:00" + }, { "name": "psr/http-factory", "version": "1.0.1", @@ -4595,6 +6632,56 @@ ], "time": "2021-09-25T23:10:38+00:00" }, + { + "name": "react/promise", + "version": "v2.8.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/promise.git", + "reference": "f3cff96a19736714524ca0dd1d4130de73dbbbc4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/promise/zipball/f3cff96a19736714524ca0dd1d4130de73dbbbc4", + "reference": "f3cff96a19736714524ca0dd1d4130de73dbbbc4", + "shasum": "" + }, + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^7.0 || ^6.5 || ^5.7 || ^4.8.36" + }, + "type": "library", + "autoload": { + "psr-4": { + "React\\Promise\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com" + } + ], + "description": "A lightweight implementation of CommonJS Promises/A for PHP", + "keywords": [ + "promise", + "promises" + ], + "support": { + "issues": "https://github.com/reactphp/promise/issues", + "source": "https://github.com/reactphp/promise/tree/v2.8.0" + }, + "time": "2020-05-12T15:16:56+00:00" + }, { "name": "sebastian/cli-parser", "version": "1.0.1", @@ -5559,6 +7646,117 @@ ], "time": "2020-09-28T06:39:44+00:00" }, + { + "name": "seld/jsonlint", + "version": "1.8.3", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/jsonlint.git", + "reference": "9ad6ce79c342fbd44df10ea95511a1b24dee5b57" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/9ad6ce79c342fbd44df10ea95511a1b24dee5b57", + "reference": "9ad6ce79c342fbd44df10ea95511a1b24dee5b57", + "shasum": "" + }, + "require": { + "php": "^5.3 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "bin": [ + "bin/jsonlint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Seld\\JsonLint\\": "src/Seld/JsonLint/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "JSON Linter", + "keywords": [ + "json", + "linter", + "parser", + "validator" + ], + "support": { + "issues": "https://github.com/Seldaek/jsonlint/issues", + "source": "https://github.com/Seldaek/jsonlint/tree/1.8.3" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/seld/jsonlint", + "type": "tidelift" + } + ], + "time": "2020-11-11T09:19:24+00:00" + }, + { + "name": "seld/phar-utils", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/phar-utils.git", + "reference": "9f3452c93ff423469c0d56450431562ca423dcee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/phar-utils/zipball/9f3452c93ff423469c0d56450431562ca423dcee", + "reference": "9f3452c93ff423469c0d56450431562ca423dcee", + "shasum": "" + }, + "require": { + "php": ">=5.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Seld\\PharUtils\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be" + } + ], + "description": "PHAR file format utilities, for when PHP phars you up", + "keywords": [ + "phar" + ], + "support": { + "issues": "https://github.com/Seldaek/phar-utils/issues", + "source": "https://github.com/Seldaek/phar-utils/tree/1.2.0" + }, + "time": "2021-12-10T11:20:11+00:00" + }, { "name": "spatie/backtrace", "version": "1.2.1", @@ -5622,17 +7820,320 @@ "time": "2021-11-09T10:57:15+00:00" }, { - "name": "spatie/laravel-package-tools", - "version": "1.9.2", + "name": "spatie/eloquent-sortable", + "version": "4.0.0", "source": { "type": "git", - "url": "https://github.com/spatie/laravel-package-tools.git", - "reference": "f710fe196c126fb9e0aee67eb5af49ad8f13f528" + "url": "https://github.com/spatie/eloquent-sortable.git", + "reference": "6b4ca608144153a69b6a9f457e15bd7eafbe97a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/f710fe196c126fb9e0aee67eb5af49ad8f13f528", - "reference": "f710fe196c126fb9e0aee67eb5af49ad8f13f528", + "url": "https://api.github.com/repos/spatie/eloquent-sortable/zipball/6b4ca608144153a69b6a9f457e15bd7eafbe97a9", + "reference": "6b4ca608144153a69b6a9f457e15bd7eafbe97a9", + "shasum": "" + }, + "require": { + "illuminate/database": "^7.0|^8.0", + "illuminate/support": "^7.0|^8.0", + "php": "^8.0", + "spatie/laravel-package-tools": "^1.6" + }, + "require-dev": { + "orchestra/testbench": "^5.0|^6.0", + "phpunit/phpunit": "^8.0|^9.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\EloquentSortable\\EloquentSortableServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\EloquentSortable\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be" + } + ], + "description": "Sortable behaviour for eloquent models", + "homepage": "https://github.com/spatie/eloquent-sortable", + "keywords": [ + "behaviour", + "eloquent", + "laravel", + "model", + "sort", + "sortable" + ], + "support": { + "issues": "https://github.com/spatie/eloquent-sortable/issues", + "source": "https://github.com/spatie/eloquent-sortable/tree/4.0.0" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2021-03-31T14:07:53+00:00" + }, + { + "name": "spatie/image", + "version": "1.10.6", + "source": { + "type": "git", + "url": "https://github.com/spatie/image.git", + "reference": "897e819848096ea8eee8ed4a3531c6166f9a99e0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/image/zipball/897e819848096ea8eee8ed4a3531c6166f9a99e0", + "reference": "897e819848096ea8eee8ed4a3531c6166f9a99e0", + "shasum": "" + }, + "require": { + "ext-exif": "*", + "ext-json": "*", + "ext-mbstring": "*", + "league/glide": "^1.6", + "php": "^7.2|^8.0", + "spatie/image-optimizer": "^1.1", + "spatie/temporary-directory": "^1.0|^2.0", + "symfony/process": "^3.0|^4.0|^5.0|^6.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.21|^9.5.4", + "symfony/var-dumper": "^4.0|^5.0|^6.0", + "vimeo/psalm": "^4.6" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Image\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Manipulate images with an expressive API", + "homepage": "https://github.com/spatie/image", + "keywords": [ + "image", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/image/issues", + "source": "https://github.com/spatie/image/tree/1.10.6" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2021-12-21T10:01:09+00:00" + }, + { + "name": "spatie/image-optimizer", + "version": "1.6.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/image-optimizer.git", + "reference": "6db75529cbf8fa84117046a9d513f277aead90a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/image-optimizer/zipball/6db75529cbf8fa84117046a9d513f277aead90a0", + "reference": "6db75529cbf8fa84117046a9d513f277aead90a0", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.3|^8.0", + "psr/log": "^1.0 | ^2.0 | ^3.0", + "symfony/process": "^4.2|^5.0|^6.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.21|^9.4.4", + "symfony/var-dumper": "^4.2|^5.0|^6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\ImageOptimizer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Easily optimize images using PHP", + "homepage": "https://github.com/spatie/image-optimizer", + "keywords": [ + "image-optimizer", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/image-optimizer/issues", + "source": "https://github.com/spatie/image-optimizer/tree/1.6.2" + }, + "time": "2021-12-21T10:08:05+00:00" + }, + { + "name": "spatie/laravel-medialibrary", + "version": "9.11.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-medialibrary.git", + "reference": "cdd43963635680bbfceae933882eabf2757470c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/cdd43963635680bbfceae933882eabf2757470c5", + "reference": "cdd43963635680bbfceae933882eabf2757470c5", + "shasum": "" + }, + "require": { + "ext-exif": "*", + "ext-fileinfo": "*", + "ext-json": "*", + "illuminate/bus": "^8.71", + "illuminate/console": "^8.71", + "illuminate/database": "^8.71", + "illuminate/pipeline": "^8.71", + "illuminate/support": "^8.71", + "intervention/image": "^2.7", + "league/flysystem": "^1.0.64", + "league/glide": "^1.7", + "maennchen/zipstream-php": "^1.0|^2.0", + "php": "^7.4|^8.0", + "spatie/image": "^1.10.5", + "spatie/temporary-directory": "^1.1|^2.0", + "symfony/console": "^4.4|^5.0" + }, + "conflict": { + "php-ffmpeg/php-ffmpeg": "<0.6.1" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.133.11", + "doctrine/dbal": "^2.12", + "ext-pdo_sqlite": "*", + "ext-zip": "*", + "guzzlehttp/guzzle": "^7.0", + "league/flysystem-aws-s3-v3": "^1.0.23", + "mockery/mockery": "^1.4", + "orchestra/testbench": "^5.20|^6.23", + "phpunit/phpunit": "^9.3", + "spatie/laravel-ray": "^1.24", + "spatie/pdf-to-image": "^2.1", + "spatie/phpunit-snapshot-assertions": "^4.0" + }, + "suggest": { + "league/flysystem-aws-s3-v3": "Required to use AWS S3 file storage", + "php-ffmpeg/php-ffmpeg": "Required for generating video thumbnails", + "spatie/pdf-to-image": "Required for generating thumbsnails of PDFs and SVGs" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\MediaLibrary\\MediaLibraryServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\MediaLibrary\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Associate files with Eloquent models", + "homepage": "https://github.com/spatie/laravel-medialibrary", + "keywords": [ + "cms", + "conversion", + "downloads", + "images", + "laravel", + "laravel-medialibrary", + "media", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-medialibrary/issues", + "source": "https://github.com/spatie/laravel-medialibrary/tree/9.11.1" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2021-12-17T13:52:45+00:00" + }, + { + "name": "spatie/laravel-package-tools", + "version": "1.10.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-package-tools.git", + "reference": "97c24d0bc58e04d55e4a6a7b6d6102cb45b75789" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/97c24d0bc58e04d55e4a6a7b6d6102cb45b75789", + "reference": "97c24d0bc58e04d55e4a6a7b6d6102cb45b75789", "shasum": "" }, "require": { @@ -5641,8 +8142,8 @@ }, "require-dev": { "mockery/mockery": "^1.4", - "orchestra/testbench": "^5.0|^6.0", - "phpunit/phpunit": "^9.3", + "orchestra/testbench": "^5.0|^6.23", + "phpunit/phpunit": "^9.4", "spatie/test-time": "^1.2" }, "type": "library", @@ -5671,7 +8172,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-package-tools/issues", - "source": "https://github.com/spatie/laravel-package-tools/tree/1.9.2" + "source": "https://github.com/spatie/laravel-package-tools/tree/1.10.0" }, "funding": [ { @@ -5679,20 +8180,20 @@ "type": "github" } ], - "time": "2021-09-21T13:06:51+00:00" + "time": "2021-12-18T20:33:51+00:00" }, { "name": "spatie/laravel-ray", - "version": "1.26.3", + "version": "1.26.5", "source": { "type": "git", "url": "https://github.com/spatie/laravel-ray.git", - "reference": "ec971959bc8e513cbfa1163e6af030cdaa5ce7bf" + "reference": "857d8fe465dbc025cbeb2735fe690ff9496f5f98" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/ec971959bc8e513cbfa1163e6af030cdaa5ce7bf", - "reference": "ec971959bc8e513cbfa1163e6af030cdaa5ce7bf", + "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/857d8fe465dbc025cbeb2735fe690ff9496f5f98", + "reference": "857d8fe465dbc025cbeb2735fe690ff9496f5f98", "shasum": "" }, "require": { @@ -5704,7 +8205,7 @@ "php": "^7.3|^8.0", "spatie/backtrace": "^1.0", "spatie/ray": "^1.27.1", - "symfony/stopwatch": "4.2|^5.1", + "symfony/stopwatch": "4.2|^5.1|^6.0", "zbateson/mail-mime-parser": "^1.3.1|^2.0" }, "require-dev": { @@ -5749,7 +8250,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-ray/issues", - "source": "https://github.com/spatie/laravel-ray/tree/1.26.3" + "source": "https://github.com/spatie/laravel-ray/tree/1.26.5" }, "funding": [ { @@ -5761,7 +8262,158 @@ "type": "other" } ], - "time": "2021-11-22T15:57:41+00:00" + "time": "2021-12-21T13:51:47+00:00" + }, + { + "name": "spatie/laravel-tags", + "version": "4.2.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-tags.git", + "reference": "78997eeddd00f30a186d1fcbc1c12c200baa59bc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-tags/zipball/78997eeddd00f30a186d1fcbc1c12c200baa59bc", + "reference": "78997eeddd00f30a186d1fcbc1c12c200baa59bc", + "shasum": "" + }, + "require": { + "laravel/framework": "^8.67", + "php": "^8.0", + "spatie/eloquent-sortable": "^3.10|^4.0", + "spatie/laravel-package-tools": "^1.4", + "spatie/laravel-translatable": "^4.6|^5.0" + }, + "require-dev": { + "orchestra/testbench": "^6.13", + "phpunit/phpunit": "^9.5.2" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\Tags\\TagsServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\Tags\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Add tags and taggable behaviour to your Laravel app", + "homepage": "https://github.com/spatie/laravel-tags", + "keywords": [ + "laravel-tags", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-tags/issues", + "source": "https://github.com/spatie/laravel-tags/tree/4.2.1" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2021-11-24T09:13:20+00:00" + }, + { + "name": "spatie/laravel-translatable", + "version": "5.1.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-translatable.git", + "reference": "0e0bca41f4e8ecc6cec90aab7c5e03789253ba00" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-translatable/zipball/0e0bca41f4e8ecc6cec90aab7c5e03789253ba00", + "reference": "0e0bca41f4e8ecc6cec90aab7c5e03789253ba00", + "shasum": "" + }, + "require": { + "illuminate/database": "^8.0", + "illuminate/support": "^8.0", + "php": "^8.0", + "spatie/laravel-package-tools": "^1.9" + }, + "require-dev": { + "mockery/mockery": "^1.4", + "orchestra/testbench": "^6.23" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Spatie\\Translatable\\TranslatableServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Spatie\\Translatable\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + }, + { + "name": "Sebastian De Deyne", + "email": "sebastian@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + }, + { + "name": "Mohamed Said", + "email": "theMohamedSaid@gmail.com", + "role": "Original idea" + } + ], + "description": "A trait to make an Eloquent model hold translations", + "homepage": "https://github.com/spatie/laravel-translatable", + "keywords": [ + "eloquent", + "i8n", + "laravel-translatable", + "model", + "multilingual", + "spatie", + "translate" + ], + "support": { + "issues": "https://github.com/spatie/laravel-translatable/issues", + "source": "https://github.com/spatie/laravel-translatable/tree/5.1.0" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + } + ], + "time": "2021-12-16T08:41:16+00:00" }, { "name": "spatie/macroable", @@ -5815,16 +8467,16 @@ }, { "name": "spatie/ray", - "version": "1.32.1", + "version": "1.32.2", "source": { "type": "git", "url": "https://github.com/spatie/ray.git", - "reference": "73baa5d216865480f0c67cac5cb4dedd1a00f4f1" + "reference": "c8534bcd14528a721c246ebc289d3cb480468431" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/ray/zipball/73baa5d216865480f0c67cac5cb4dedd1a00f4f1", - "reference": "73baa5d216865480f0c67cac5cb4dedd1a00f4f1", + "url": "https://api.github.com/repos/spatie/ray/zipball/c8534bcd14528a721c246ebc289d3cb480468431", + "reference": "c8534bcd14528a721c246ebc289d3cb480468431", "shasum": "" }, "require": { @@ -5834,8 +8486,8 @@ "ramsey/uuid": "^3.0|^4.1", "spatie/backtrace": "^1.1", "spatie/macroable": "^1.0|^2.0", - "symfony/stopwatch": "^4.0|^5.1", - "symfony/var-dumper": "^4.2|^5.1" + "symfony/stopwatch": "^4.0|^5.1|^6.0", + "symfony/var-dumper": "^4.2|^5.1|^6.0" }, "require-dev": { "illuminate/support": "6.x|^8.18", @@ -5874,7 +8526,7 @@ ], "support": { "issues": "https://github.com/spatie/ray/issues", - "source": "https://github.com/spatie/ray/tree/1.32.1" + "source": "https://github.com/spatie/ray/tree/1.32.2" }, "funding": [ { @@ -5886,7 +8538,68 @@ "type": "other" } ], - "time": "2021-11-30T15:52:12+00:00" + "time": "2021-12-20T18:53:49+00:00" + }, + { + "name": "spatie/temporary-directory", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/temporary-directory.git", + "reference": "06fe0f10d068fdf145c9b2235030e568c913bb61" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/temporary-directory/zipball/06fe0f10d068fdf145c9b2235030e568c913bb61", + "reference": "06fe0f10d068fdf145c9b2235030e568c913bb61", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\TemporaryDirectory\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alex Vanderbist", + "email": "alex@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Easily create, use and destroy temporary directories", + "homepage": "https://github.com/spatie/temporary-directory", + "keywords": [ + "php", + "spatie", + "temporary-directory" + ], + "support": { + "issues": "https://github.com/spatie/temporary-directory/issues", + "source": "https://github.com/spatie/temporary-directory/tree/2.0.0" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2021-03-30T19:46:13+00:00" }, { "name": "swiftmailer/swiftmailer", @@ -5966,23 +8679,23 @@ }, { "name": "symfony/console", - "version": "v5.4.0", + "version": "v5.4.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "ec3661faca1d110d6c307e124b44f99ac54179e3" + "reference": "9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/ec3661faca1d110d6c307e124b44f99ac54179e3", - "reference": "ec3661faca1d110d6c307e124b44f99ac54179e3", + "url": "https://api.github.com/repos/symfony/console/zipball/9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4", + "reference": "9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4", "shasum": "" }, "require": { "php": ">=7.2.5", "symfony/deprecation-contracts": "^2.1|^3", "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php73": "^1.8", + "symfony/polyfill-php73": "^1.9", "symfony/polyfill-php80": "^1.16", "symfony/service-contracts": "^1.1|^2|^3", "symfony/string": "^5.1|^6.0" @@ -6045,7 +8758,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.0" + "source": "https://github.com/symfony/console/tree/v5.4.1" }, "funding": [ { @@ -6061,20 +8774,20 @@ "type": "tidelift" } ], - "time": "2021-11-29T15:30:56+00:00" + "time": "2021-12-09T11:22:43+00:00" }, { "name": "symfony/css-selector", - "version": "v6.0.0", + "version": "v6.0.1", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "3a61e2e4fbda3fb7fb5d83620c30fef726139e1c" + "reference": "ede53cafe1784b9131a48774b54f281d5d003f65" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/3a61e2e4fbda3fb7fb5d83620c30fef726139e1c", - "reference": "3a61e2e4fbda3fb7fb5d83620c30fef726139e1c", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/ede53cafe1784b9131a48774b54f281d5d003f65", + "reference": "ede53cafe1784b9131a48774b54f281d5d003f65", "shasum": "" }, "require": { @@ -6110,7 +8823,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v6.0.0" + "source": "https://github.com/symfony/css-selector/tree/v6.0.1" }, "funding": [ { @@ -6126,7 +8839,7 @@ "type": "tidelift" } ], - "time": "2021-09-09T12:56:10+00:00" + "time": "2021-12-08T15:13:44+00:00" }, { "name": "symfony/deprecation-contracts", @@ -6197,16 +8910,16 @@ }, { "name": "symfony/error-handler", - "version": "v5.4.0", + "version": "v5.4.1", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "8433fa3145ac78df88b87a4a539118e950828126" + "reference": "1e3cb3565af49cd5f93e5787500134500a29f0d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/8433fa3145ac78df88b87a4a539118e950828126", - "reference": "8433fa3145ac78df88b87a4a539118e950828126", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/1e3cb3565af49cd5f93e5787500134500a29f0d9", + "reference": "1e3cb3565af49cd5f93e5787500134500a29f0d9", "shasum": "" }, "require": { @@ -6248,7 +8961,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v5.4.0" + "source": "https://github.com/symfony/error-handler/tree/v5.4.1" }, "funding": [ { @@ -6264,20 +8977,20 @@ "type": "tidelift" } ], - "time": "2021-11-29T15:30:56+00:00" + "time": "2021-12-01T15:04:08+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v6.0.0", + "version": "v6.0.1", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "2774908d5ae32fd94e363e7cbbd87462712c4576" + "reference": "4f06d19a5f78087061f9de6df3269c139c3d289d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/2774908d5ae32fd94e363e7cbbd87462712c4576", - "reference": "2774908d5ae32fd94e363e7cbbd87462712c4576", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/4f06d19a5f78087061f9de6df3269c139c3d289d", + "reference": "4f06d19a5f78087061f9de6df3269c139c3d289d", "shasum": "" }, "require": { @@ -6331,7 +9044,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v6.0.0" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.0.1" }, "funding": [ { @@ -6347,7 +9060,7 @@ "type": "tidelift" } ], - "time": "2021-11-23T19:05:29+00:00" + "time": "2021-12-08T15:13:44+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -6428,6 +9141,69 @@ ], "time": "2021-07-15T12:33:35+00:00" }, + { + "name": "symfony/filesystem", + "version": "v6.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "52b3c9cce673b014915445a432339f282e002ce6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/52b3c9cce673b014915445a432339f282e002ce6", + "reference": "52b3c9cce673b014915445a432339f282e002ce6", + "shasum": "" + }, + "require": { + "php": ">=8.0.2", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.8" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides basic utilities for the filesystem", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/filesystem/tree/v6.0.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-10-29T07:35:21+00:00" + }, { "name": "symfony/finder", "version": "v5.4.0", @@ -6493,16 +9269,16 @@ }, { "name": "symfony/http-foundation", - "version": "v5.4.0", + "version": "v5.4.1", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "5ef86ac7927d2de08dc1e26eb91325f9ccbe6309" + "reference": "5dad3780023a707f4c24beac7d57aead85c1ce3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/5ef86ac7927d2de08dc1e26eb91325f9ccbe6309", - "reference": "5ef86ac7927d2de08dc1e26eb91325f9ccbe6309", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/5dad3780023a707f4c24beac7d57aead85c1ce3c", + "reference": "5dad3780023a707f4c24beac7d57aead85c1ce3c", "shasum": "" }, "require": { @@ -6546,7 +9322,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v5.4.0" + "source": "https://github.com/symfony/http-foundation/tree/v5.4.1" }, "funding": [ { @@ -6562,20 +9338,20 @@ "type": "tidelift" } ], - "time": "2021-11-28T15:25:38+00:00" + "time": "2021-12-09T12:46:57+00:00" }, { "name": "symfony/http-kernel", - "version": "v5.4.0", + "version": "v5.4.1", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "e012f16688bcb151e965473a70d8ebaa8b1d15ea" + "reference": "2bdace75c9d6a6eec7e318801b7dc87a72375052" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/e012f16688bcb151e965473a70d8ebaa8b1d15ea", - "reference": "e012f16688bcb151e965473a70d8ebaa8b1d15ea", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/2bdace75c9d6a6eec7e318801b7dc87a72375052", + "reference": "2bdace75c9d6a6eec7e318801b7dc87a72375052", "shasum": "" }, "require": { @@ -6658,7 +9434,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v5.4.0" + "source": "https://github.com/symfony/http-kernel/tree/v5.4.1" }, "funding": [ { @@ -6674,7 +9450,7 @@ "type": "tidelift" } ], - "time": "2021-11-29T16:56:53+00:00" + "time": "2021-12-09T13:36:09+00:00" }, { "name": "symfony/mime", @@ -7803,20 +10579,20 @@ }, { "name": "symfony/stopwatch", - "version": "v5.4.0", + "version": "v6.0.0", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "208ef96122bfed82a8f3a61458a07113a08bdcfe" + "reference": "0e0ed55d1ffdfadd03af180443fbdca9876483b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/208ef96122bfed82a8f3a61458a07113a08bdcfe", - "reference": "208ef96122bfed82a8f3a61458a07113a08bdcfe", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/0e0ed55d1ffdfadd03af180443fbdca9876483b3", + "reference": "0e0ed55d1ffdfadd03af180443fbdca9876483b3", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.0.2", "symfony/service-contracts": "^1|^2|^3" }, "type": "library", @@ -7845,7 +10621,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v5.4.0" + "source": "https://github.com/symfony/stopwatch/tree/v6.0.0" }, "funding": [ { @@ -7861,20 +10637,20 @@ "type": "tidelift" } ], - "time": "2021-11-23T10:19:22+00:00" + "time": "2021-11-23T19:05:29+00:00" }, { "name": "symfony/string", - "version": "v6.0.0", + "version": "v6.0.1", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "ba727797426af0f587f4800566300bdc0cda0777" + "reference": "0cfed595758ec6e0a25591bdc8ca733c1896af32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/ba727797426af0f587f4800566300bdc0cda0777", - "reference": "ba727797426af0f587f4800566300bdc0cda0777", + "url": "https://api.github.com/repos/symfony/string/zipball/0cfed595758ec6e0a25591bdc8ca733c1896af32", + "reference": "0cfed595758ec6e0a25591bdc8ca733c1896af32", "shasum": "" }, "require": { @@ -7930,7 +10706,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.0.0" + "source": "https://github.com/symfony/string/tree/v6.0.1" }, "funding": [ { @@ -7946,20 +10722,20 @@ "type": "tidelift" } ], - "time": "2021-10-29T07:35:21+00:00" + "time": "2021-12-08T15:13:44+00:00" }, { "name": "symfony/translation", - "version": "v6.0.0", + "version": "v6.0.1", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "5e3848083ef1abc4814be154095946b8193f41d6" + "reference": "b7956e00c6e03546f2ba489fc50f7c47933e76b8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/5e3848083ef1abc4814be154095946b8193f41d6", - "reference": "5e3848083ef1abc4814be154095946b8193f41d6", + "url": "https://api.github.com/repos/symfony/translation/zipball/b7956e00c6e03546f2ba489fc50f7c47933e76b8", + "reference": "b7956e00c6e03546f2ba489fc50f7c47933e76b8", "shasum": "" }, "require": { @@ -8025,7 +10801,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v6.0.0" + "source": "https://github.com/symfony/translation/tree/v6.0.1" }, "funding": [ { @@ -8041,7 +10817,7 @@ "type": "tidelift" } ], - "time": "2021-11-29T15:32:57+00:00" + "time": "2021-12-08T15:13:44+00:00" }, { "name": "symfony/translation-contracts", @@ -8123,16 +10899,16 @@ }, { "name": "symfony/var-dumper", - "version": "v5.4.0", + "version": "v5.4.1", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "89ab66eaef230c9cd1992de2e9a1b26652b127b9" + "reference": "2366ac8d8abe0c077844613c1a4f0c0a9f522dcc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/89ab66eaef230c9cd1992de2e9a1b26652b127b9", - "reference": "89ab66eaef230c9cd1992de2e9a1b26652b127b9", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/2366ac8d8abe0c077844613c1a4f0c0a9f522dcc", + "reference": "2366ac8d8abe0c077844613c1a4f0c0a9f522dcc", "shasum": "" }, "require": { @@ -8192,7 +10968,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v5.4.0" + "source": "https://github.com/symfony/var-dumper/tree/v5.4.1" }, "funding": [ { @@ -8208,7 +10984,7 @@ "type": "tidelift" } ], - "time": "2021-11-29T15:30:56+00:00" + "time": "2021-12-01T15:04:08+00:00" }, { "name": "symfony/yaml", @@ -8431,16 +11207,16 @@ }, { "name": "vlucas/phpdotenv", - "version": "v5.4.0", + "version": "v5.4.1", "source": { "type": "git", "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "d4394d044ed69a8f244f3445bcedf8a0d7fe2403" + "reference": "264dce589e7ce37a7ba99cb901eed8249fbec92f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/d4394d044ed69a8f244f3445bcedf8a0d7fe2403", - "reference": "d4394d044ed69a8f244f3445bcedf8a0d7fe2403", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/264dce589e7ce37a7ba99cb901eed8249fbec92f", + "reference": "264dce589e7ce37a7ba99cb901eed8249fbec92f", "shasum": "" }, "require": { @@ -8478,11 +11254,13 @@ "authors": [ { "name": "Graham Campbell", - "email": "hello@gjcampbell.co.uk" + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" }, { "name": "Vance Lucas", - "email": "vance@vancelucas.com" + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" } ], "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", @@ -8493,7 +11271,7 @@ ], "support": { "issues": "https://github.com/vlucas/phpdotenv/issues", - "source": "https://github.com/vlucas/phpdotenv/tree/v5.4.0" + "source": "https://github.com/vlucas/phpdotenv/tree/v5.4.1" }, "funding": [ { @@ -8505,7 +11283,7 @@ "type": "tidelift" } ], - "time": "2021-11-10T01:08:39+00:00" + "time": "2021-12-12T23:22:04+00:00" }, { "name": "voku/portable-ascii", @@ -8641,16 +11419,16 @@ }, { "name": "zbateson/mail-mime-parser", - "version": "2.1.0", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/zbateson/mail-mime-parser.git", - "reference": "0ef2d7de2577ea0a339d34720451c8ba8cd9dbb4" + "reference": "b969a8a72106dcdaa9ac4b19bb2e6b22d3fc5584" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zbateson/mail-mime-parser/zipball/0ef2d7de2577ea0a339d34720451c8ba8cd9dbb4", - "reference": "0ef2d7de2577ea0a339d34720451c8ba8cd9dbb4", + "url": "https://api.github.com/repos/zbateson/mail-mime-parser/zipball/b969a8a72106dcdaa9ac4b19bb2e6b22d3fc5584", + "reference": "b969a8a72106dcdaa9ac4b19bb2e6b22d3fc5584", "shasum": "" }, "require": { @@ -8710,7 +11488,7 @@ "type": "github" } ], - "time": "2021-11-09T18:24:41+00:00" + "time": "2021-12-08T20:21:28+00:00" }, { "name": "zbateson/mb-wrapper", diff --git a/packages/admin/src/AvatarProviders/UiAvatarsProvider.php b/packages/admin/src/AvatarProviders/UiAvatarsProvider.php index 6e0b4a6d98..652926f0fa 100644 --- a/packages/admin/src/AvatarProviders/UiAvatarsProvider.php +++ b/packages/admin/src/AvatarProviders/UiAvatarsProvider.php @@ -2,12 +2,13 @@ namespace Filament\AvatarProviders; +use Filament\Facades\Filament; use Illuminate\Contracts\Auth\Authenticatable; class UiAvatarsProvider implements Contracts\AvatarProvider { public function get(Authenticatable $user): string { - return 'https://ui-avatars.com/api/?name=' . urlencode($user->name) . '&color=FFFFFF&background=111827'; + return 'https://ui-avatars.com/api/?name=' . urlencode(Filament::getUserName($user)) . '&color=FFFFFF&background=111827'; } } diff --git a/packages/admin/src/Navigation/NavigationItem.php b/packages/admin/src/Navigation/NavigationItem.php index ea3b1db6d9..65c428f495 100644 --- a/packages/admin/src/Navigation/NavigationItem.php +++ b/packages/admin/src/Navigation/NavigationItem.php @@ -18,6 +18,10 @@ class NavigationItem protected ?string $url = null; + final public function __construct() + { + } + public static function make(): static { return new static(); diff --git a/packages/admin/src/Pages/Page.php b/packages/admin/src/Pages/Page.php index 30044cad88..080c26de92 100644 --- a/packages/admin/src/Pages/Page.php +++ b/packages/admin/src/Pages/Page.php @@ -9,6 +9,7 @@ use Illuminate\Contracts\View\View; use Illuminate\Support\Facades\Route; use Illuminate\Support\Str; use Livewire\Component; +use Livewire\Macros\ViewMacros; class Page extends Component { diff --git a/packages/admin/src/Resources/Form.php b/packages/admin/src/Resources/Form.php index 46d8de8cad..10f5c4570d 100644 --- a/packages/admin/src/Resources/Form.php +++ b/packages/admin/src/Resources/Form.php @@ -12,6 +12,10 @@ class Form protected array | Component | Closure $schema = []; + final public function __construct() + { + } + public static function make(): static { return new static(); diff --git a/packages/admin/src/Resources/Table.php b/packages/admin/src/Resources/Table.php index ba39efed03..427918df84 100644 --- a/packages/admin/src/Resources/Table.php +++ b/packages/admin/src/Resources/Table.php @@ -18,6 +18,10 @@ class Table protected array $headerActions = []; + final public function __construct() + { + } + public static function make(): static { return new static(); diff --git a/packages/forms/src/Commands/Concerns/CanValidateInput.php b/packages/forms/src/Commands/Concerns/CanValidateInput.php index 2fa8fb3315..1293edeec5 100644 --- a/packages/forms/src/Commands/Concerns/CanValidateInput.php +++ b/packages/forms/src/Commands/Concerns/CanValidateInput.php @@ -2,6 +2,7 @@ namespace Filament\Forms\Commands\Concerns; +use Closure; use Illuminate\Support\Facades\Validator; trait CanValidateInput @@ -11,7 +12,7 @@ trait CanValidateInput return $this->validateInput(fn () => $this->ask($question), $field, ['required']); } - protected function validateInput(callable $callback, string $field, array $rules): string + protected function validateInput(Closure $callback, string $field, array $rules): string { $input = $callback(); diff --git a/packages/forms/src/Components/Concerns/BelongsToModel.php b/packages/forms/src/Components/Concerns/BelongsToModel.php index 2f7eeabbb2..93539ec47c 100644 --- a/packages/forms/src/Components/Concerns/BelongsToModel.php +++ b/packages/forms/src/Components/Concerns/BelongsToModel.php @@ -7,11 +7,11 @@ use Illuminate\Database\Eloquent\Model; trait BelongsToModel { - protected $model = null; + protected Model | string | Closure | null $model = null; protected ?Closure $saveRelationshipsUsing = null; - public function model(Model | string | callable | null $model = null): static + public function model(Model | string | Closure | null $model = null): static { $this->model = $model; diff --git a/packages/forms/src/Components/Concerns/CanBeAccepted.php b/packages/forms/src/Components/Concerns/CanBeAccepted.php index 4118d63106..010f4b4c61 100644 --- a/packages/forms/src/Components/Concerns/CanBeAccepted.php +++ b/packages/forms/src/Components/Concerns/CanBeAccepted.php @@ -2,9 +2,11 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait CanBeAccepted { - public function accepted(bool | callable $condition = true): static + public function accepted(bool | Closure $condition = true): static { $this->rule('accepted', $condition); diff --git a/packages/forms/src/Components/Concerns/CanBeAutocapitalized.php b/packages/forms/src/Components/Concerns/CanBeAutocapitalized.php index 8961af132e..87e5bf4ce4 100644 --- a/packages/forms/src/Components/Concerns/CanBeAutocapitalized.php +++ b/packages/forms/src/Components/Concerns/CanBeAutocapitalized.php @@ -2,18 +2,20 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait CanBeAutocapitalized { - protected $autocapitalize = null; + protected string | Closure | null $autocapitalize = null; - public function autocapitalize(string | callable $autocapitalize = 'on'): static + public function autocapitalize(string | Closure | null $autocapitalize = 'on'): static { $this->autocapitalize = $autocapitalize; return $this; } - public function disableAutocapitalize(bool | callable $condition = true): static + public function disableAutocapitalize(bool | Closure $condition = true): static { $this->autocapitalize(function () use ($condition): ?string { return $this->evaluate($condition) ? 'off' : null; diff --git a/packages/forms/src/Components/Concerns/CanBeAutocompleted.php b/packages/forms/src/Components/Concerns/CanBeAutocompleted.php index c8f33f9ff7..fd299d9f3c 100644 --- a/packages/forms/src/Components/Concerns/CanBeAutocompleted.php +++ b/packages/forms/src/Components/Concerns/CanBeAutocompleted.php @@ -2,18 +2,20 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait CanBeAutocompleted { - protected $autocomplete = null; + protected string | Closure | null $autocomplete = null; - public function autocomplete(string | callable $autocomplete = 'on'): static + public function autocomplete(string | Closure | null $autocomplete = 'on'): static { $this->autocomplete = $autocomplete; return $this; } - public function disableAutocomplete(bool | callable $condition = true): static + public function disableAutocomplete(bool | Closure $condition = true): static { $this->autocomplete(function () use ($condition): ?string { return $this->evaluate($condition) ? 'off' : null; diff --git a/packages/forms/src/Components/Concerns/CanBeAutofocused.php b/packages/forms/src/Components/Concerns/CanBeAutofocused.php index b47d12e2bd..64f05d6192 100644 --- a/packages/forms/src/Components/Concerns/CanBeAutofocused.php +++ b/packages/forms/src/Components/Concerns/CanBeAutofocused.php @@ -2,11 +2,13 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait CanBeAutofocused { - protected $isAutofocused = false; + protected bool | Closure $isAutofocused = false; - public function autofocus(bool | callable $condition = true): static + public function autofocus(bool | Closure $condition = true): static { $this->isAutofocused = $condition; diff --git a/packages/forms/src/Components/Concerns/CanBeDisabled.php b/packages/forms/src/Components/Concerns/CanBeDisabled.php index 5dab333541..b1a90e3a05 100644 --- a/packages/forms/src/Components/Concerns/CanBeDisabled.php +++ b/packages/forms/src/Components/Concerns/CanBeDisabled.php @@ -2,11 +2,13 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait CanBeDisabled { - protected $isDisabled = false; + protected bool | Closure $isDisabled = false; - public function disabled(bool | callable $condition = true): static + public function disabled(bool | Closure $condition = true): static { $this->isDisabled = $condition; diff --git a/packages/forms/src/Components/Concerns/CanBeHidden.php b/packages/forms/src/Components/Concerns/CanBeHidden.php index 8de9b55609..8b9975543c 100644 --- a/packages/forms/src/Components/Concerns/CanBeHidden.php +++ b/packages/forms/src/Components/Concerns/CanBeHidden.php @@ -2,22 +2,23 @@ namespace Filament\Forms\Components\Concerns; +use Closure; use Illuminate\Support\Arr; trait CanBeHidden { - protected $isHidden = false; + protected bool | Closure $isHidden = false; - protected $isVisible = true; + protected bool | Closure $isVisible = true; - public function hidden(bool | callable $condition = true): static + public function hidden(bool | Closure $condition = true): static { $this->isHidden = $condition; return $this; } - public function when(bool | callable $condition = true): static + public function when(bool | Closure $condition = true): static { $this->visible($condition); @@ -28,7 +29,7 @@ trait CanBeHidden { $paths = Arr::wrap($paths); - $this->hidden(function (callable $get) use ($paths): bool { + $this->hidden(function (Closure $get) use ($paths): bool { foreach ($paths as $path) { if (! $get($path)) { return true; @@ -45,7 +46,7 @@ trait CanBeHidden { $paths = Arr::wrap($paths); - $this->hidden(function (callable $get) use ($paths): bool { + $this->hidden(function (Closure $get) use ($paths): bool { foreach ($paths as $path) { if (! ! $get($path)) { return true; @@ -58,7 +59,7 @@ trait CanBeHidden return $this; } - public function visible(bool | callable $condition = true): static + public function visible(bool | Closure $condition = true): static { $this->isVisible = $condition; diff --git a/packages/forms/src/Components/Concerns/CanBeInline.php b/packages/forms/src/Components/Concerns/CanBeInline.php index c7cd48f7e0..38b0f91fed 100644 --- a/packages/forms/src/Components/Concerns/CanBeInline.php +++ b/packages/forms/src/Components/Concerns/CanBeInline.php @@ -2,11 +2,13 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait CanBeInline { - protected $isInline = true; + protected bool | Closure $isInline = true; - public function inline(bool | callable $condition = true): static + public function inline(bool | Closure $condition = true): static { $this->isInline = $condition; diff --git a/packages/forms/src/Components/Concerns/CanBeLengthConstrained.php b/packages/forms/src/Components/Concerns/CanBeLengthConstrained.php index 38cdda069f..44fe9e58dc 100644 --- a/packages/forms/src/Components/Concerns/CanBeLengthConstrained.php +++ b/packages/forms/src/Components/Concerns/CanBeLengthConstrained.php @@ -2,13 +2,15 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait CanBeLengthConstrained { - protected $maxLength = null; + protected int | Closure | null $maxLength = null; - protected $minLength = null; + protected int | Closure | null $minLength = null; - public function maxLength(int | callable $length): static + public function maxLength(int | Closure $length): static { $this->maxLength = $length; @@ -21,7 +23,7 @@ trait CanBeLengthConstrained return $this; } - public function minLength(int | callable $length): static + public function minLength(int | Closure $length): static { $this->minLength = $length; diff --git a/packages/forms/src/Components/Concerns/CanBeValidated.php b/packages/forms/src/Components/Concerns/CanBeValidated.php index 30dd6fc552..5cbcff3feb 100644 --- a/packages/forms/src/Components/Concerns/CanBeValidated.php +++ b/packages/forms/src/Components/Concerns/CanBeValidated.php @@ -10,13 +10,13 @@ use Illuminate\Validation\Rules\Unique; trait CanBeValidated { - protected $isRequired = false; + protected bool | Closure $isRequired = false; protected array $rules = []; - protected $validationAttribute = null; + protected string | Closure | null $validationAttribute = null; - public function exists(string | callable | null $table = null, string | callable | null $column = null, ?Closure $callback = null): static + public function exists(string | Closure | null $table = null, string | Closure | null $column = null, ?Closure $callback = null): static { $this->rule(function (Component $component) use ($callback, $column, $table) { $table = $component->evaluate($table) ?? $component->getModelClass(); @@ -36,7 +36,7 @@ trait CanBeValidated return $this; } - public function nullable(bool | callable $condition = true): static + public function nullable(bool | Closure $condition = true): static { $this->required(function (Component $component) use ($condition): bool { return ! $component->evaluate($condition); @@ -45,14 +45,14 @@ trait CanBeValidated return $this; } - public function required(bool | callable $condition = true): static + public function required(bool | Closure $condition = true): static { $this->isRequired = $condition; return $this; } - public function rule(string | object | callable $rule, bool | callable $condition = true): static + public function rule(string | object $rule, bool | Closure $condition = true): static { $this->rules = array_merge( $this->rules, @@ -62,67 +62,67 @@ trait CanBeValidated return $this; } - public function rules(array $rules, bool | callable $condition = true): static + public function rules(array $rules, bool | Closure $condition = true): static { $this->rules = array_merge( $this->rules, - array_map(fn (string | object | callable $rule) => [$rule, $condition], $rules), + array_map(fn (string | object $rule) => [$rule, $condition], $rules), ); return $this; } - public function after(string | callable $date, bool $isStatePathAbsolute = false): static + public function after(string | Closure $date, bool $isStatePathAbsolute = false): static { return $this->dateComparisonRule('after', $date, $isStatePathAbsolute); } - public function afterOrEqual(string | callable $date, bool $isStatePathAbsolute = false): static + public function afterOrEqual(string | Closure $date, bool $isStatePathAbsolute = false): static { return $this->dateComparisonRule('after_or_equal', $date, $isStatePathAbsolute); } - public function before(string | callable $date, bool $isStatePathAbsolute = false): static + public function before(string | Closure $date, bool $isStatePathAbsolute = false): static { return $this->dateComparisonRule('before', $date, $isStatePathAbsolute); } - public function beforeOrEqual(string | callable $date, bool $isStatePathAbsolute = false): static + public function beforeOrEqual(string | Closure $date, bool $isStatePathAbsolute = false): static { return $this->dateComparisonRule('before_or_equal', $date, $isStatePathAbsolute); } - public function different(string | callable $statePath, bool $isStatePathAbsolute = false): static + public function different(string | Closure $statePath, bool $isStatePathAbsolute = false): static { return $this->fieldComparisonRule('different', $statePath, $isStatePathAbsolute); } - public function gt(string | callable $statePath, bool $isStatePathAbsolute = false): static + public function gt(string | Closure $statePath, bool $isStatePathAbsolute = false): static { return $this->fieldComparisonRule('gt', $statePath, $isStatePathAbsolute); } - public function gte(string | callable $statePath, bool $isStatePathAbsolute = false): static + public function gte(string | Closure $statePath, bool $isStatePathAbsolute = false): static { return $this->fieldComparisonRule('gte', $statePath, $isStatePathAbsolute); } - public function lt(string | callable $statePath, bool $isStatePathAbsolute = false): static + public function lt(string | Closure $statePath, bool $isStatePathAbsolute = false): static { return $this->fieldComparisonRule('lt', $statePath, $isStatePathAbsolute); } - public function lte(string | callable $statePath, bool $isStatePathAbsolute = false): static + public function lte(string | Closure $statePath, bool $isStatePathAbsolute = false): static { return $this->fieldComparisonRule('lte', $statePath, $isStatePathAbsolute); } - public function same(string | callable $statePath, bool $isStatePathAbsolute = false): static + public function same(string | Closure $statePath, bool $isStatePathAbsolute = false): static { return $this->fieldComparisonRule('same', $statePath, $isStatePathAbsolute); } - public function unique(string | callable | null $table = null, string | callable | null $column = null, Model | callable $ignorable = null, ?Closure $callback = null): static + public function unique(string | Closure | null $table = null, string | Closure | null $column = null, Model | Closure $ignorable = null, ?Closure $callback = null): static { $this->rule(function (Component $component) use ($callback, $column, $ignorable, $table) { $table = $component->evaluate($table) ?? $component->getModelClass(); @@ -150,7 +150,7 @@ trait CanBeValidated return $this; } - public function validationAttribute(string | callable $label): static + public function validationAttribute(string | Closure | null $label): static { $this->validationAttribute = $label; @@ -189,7 +189,7 @@ trait CanBeValidated return (bool) $this->evaluate($this->isRequired); } - protected function dateComparisonRule(string $rule, string | callable $date, bool $isStatePathAbsolute = false): static + protected function dateComparisonRule(string $rule, string | Closure $date, bool $isStatePathAbsolute = false): static { $this->rule(function (Component $component) use ($date, $isStatePathAbsolute, $rule): string { $date = $component->evaluate($date); @@ -208,7 +208,7 @@ trait CanBeValidated return $this; } - protected function fieldComparisonRule(string $rule, string | callable $statePath, bool $isStatePathAbsolute = false): static + protected function fieldComparisonRule(string $rule, string | Closure $statePath, bool $isStatePathAbsolute = false): static { $this->rule(function (Component $component) use ($isStatePathAbsolute, $rule, $statePath): string { $statePath = $component->evaluate($statePath); diff --git a/packages/forms/src/Components/Concerns/CanLimitItemsLength.php b/packages/forms/src/Components/Concerns/CanLimitItemsLength.php index 87fa0fb934..8f63ddf38b 100644 --- a/packages/forms/src/Components/Concerns/CanLimitItemsLength.php +++ b/packages/forms/src/Components/Concerns/CanLimitItemsLength.php @@ -2,15 +2,16 @@ namespace Filament\Forms\Components\Concerns; +use Closure; use Filament\Forms\Components\Component; trait CanLimitItemsLength { - protected $maxItems = null; + protected int | Closure | null $maxItems = null; - protected $minItems = null; + protected int | Closure | null $minItems = null; - public function maxItems(int | callable $count): static + public function maxItems(int | Closure $count): static { $this->maxItems = $count; @@ -24,7 +25,7 @@ trait CanLimitItemsLength return $this; } - public function minItems(int | callable $count): static + public function minItems(int | Closure $count): static { $this->minItems = $count; diff --git a/packages/forms/src/Components/Concerns/HasExtraAlpineAttributes.php b/packages/forms/src/Components/Concerns/HasExtraAlpineAttributes.php index 2ef5bca160..fd217dd71d 100644 --- a/packages/forms/src/Components/Concerns/HasExtraAlpineAttributes.php +++ b/packages/forms/src/Components/Concerns/HasExtraAlpineAttributes.php @@ -2,13 +2,14 @@ namespace Filament\Forms\Components\Concerns; +use Closure; use Illuminate\View\ComponentAttributeBag; trait HasExtraAlpineAttributes { - protected $extraAlpineAttributes = []; + protected array | Closure $extraAlpineAttributes = []; - public function extraAlpineAttributes(array | callable $attributes): static + public function extraAlpineAttributes(array | Closure $attributes): static { $this->extraAlpineAttributes = $attributes; diff --git a/packages/forms/src/Components/Concerns/HasExtraAttributes.php b/packages/forms/src/Components/Concerns/HasExtraAttributes.php index f61eb6ab28..b3f5572ea5 100644 --- a/packages/forms/src/Components/Concerns/HasExtraAttributes.php +++ b/packages/forms/src/Components/Concerns/HasExtraAttributes.php @@ -2,11 +2,13 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait HasExtraAttributes { - protected $extraAttributes = []; + protected array | Closure $extraAttributes = []; - public function extraAttributes(array | callable $attributes): static + public function extraAttributes(array | Closure $attributes): static { $this->extraAttributes = $attributes; diff --git a/packages/forms/src/Components/Concerns/HasFileAttachments.php b/packages/forms/src/Components/Concerns/HasFileAttachments.php index 355c15b1c7..a8e19f14bd 100644 --- a/packages/forms/src/Components/Concerns/HasFileAttachments.php +++ b/packages/forms/src/Components/Concerns/HasFileAttachments.php @@ -2,6 +2,7 @@ namespace Filament\Forms\Components\Concerns; +use Closure; use Illuminate\Contracts\Filesystem\Filesystem; use Illuminate\Support\Facades\Storage; use League\Flysystem\AwsS3v3\AwsS3Adapter; @@ -9,24 +10,24 @@ use SplFileInfo; trait HasFileAttachments { - protected $fileAttachmentsDirectory = null; + protected string | Closure | null $fileAttachmentsDirectory = null; - protected $fileAttachmentsDiskName = null; + protected string | Closure | null $fileAttachmentsDiskName = null; - protected $getUploadedAttachmentUrlUsing = null; + protected ?Closure $getUploadedAttachmentUrlUsing = null; - protected $saveUploadedFileAttachmentsUsing = null; + protected ?Closure $saveUploadedFileAttachmentsUsing = null; - protected $fileAttachmentsVisibility = 'public'; + protected string | Closure $fileAttachmentsVisibility = 'public'; - public function fileAttachmentsDirectory(string | callable $directory): static + public function fileAttachmentsDirectory(string | Closure | null $directory): static { $this->fileAttachmentsDirectory = $directory; return $this; } - public function fileAttachmentsDisk($name): static + public function fileAttachmentsDisk(string | Closure | null $name): static { $this->fileAttachmentsDiskName = $name; @@ -52,13 +53,27 @@ trait HasFileAttachments return $this->handleUploadedAttachmentUrlRetrieval($file); } - public function fileAttachmentsVisibility(string | callable $visibility): static + public function fileAttachmentsVisibility(string | Closure $visibility): static { $this->fileAttachmentsVisibility = $visibility; return $this; } + public function getUploadedAttachmentUrlUsing(Closure | null $callback): static + { + $this->getUploadedAttachmentUrlUsing = $callback; + + return $this; + } + + public function saveUploadedFileAttachmentsUsing(Closure | null $callback): static + { + $this->saveUploadedFileAttachmentsUsing = $callback; + + return $this; + } + public function getFileAttachmentsDirectory(): ?string { return $this->evaluate($this->fileAttachmentsDirectory); @@ -79,13 +94,6 @@ trait HasFileAttachments return $this->evaluate($this->fileAttachmentsVisibility); } - public function getUploadedAttachmentUrlUsing(callable $callback): static - { - $this->getUploadedAttachmentUrlUsing = $callback; - - return $this; - } - protected function handleFileAttachmentUpload($file) { $storeMethod = $this->getFileAttachmentsVisibility() === 'public' ? 'storePublicly' : 'store'; diff --git a/packages/forms/src/Components/Concerns/HasHelperText.php b/packages/forms/src/Components/Concerns/HasHelperText.php index 4483e6c584..ae34b395af 100644 --- a/packages/forms/src/Components/Concerns/HasHelperText.php +++ b/packages/forms/src/Components/Concerns/HasHelperText.php @@ -2,11 +2,13 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait HasHelperText { - protected $helperText = null; + protected string | Closure | null $helperText = null; - public function helperText(string | callable $text): static + public function helperText(string | Closure | null $text): static { $this->helperText = $text; diff --git a/packages/forms/src/Components/Concerns/HasHint.php b/packages/forms/src/Components/Concerns/HasHint.php index 1924885943..5608d5b8be 100644 --- a/packages/forms/src/Components/Concerns/HasHint.php +++ b/packages/forms/src/Components/Concerns/HasHint.php @@ -2,11 +2,13 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait HasHint { - protected $hint = null; + protected string | Closure | null $hint = null; - public function hint(string | callable $hint): static + public function hint(string | Closure | null $hint): static { $this->hint = $hint; diff --git a/packages/forms/src/Components/Concerns/HasId.php b/packages/forms/src/Components/Concerns/HasId.php index 53ab930ccb..6524cf0aae 100644 --- a/packages/forms/src/Components/Concerns/HasId.php +++ b/packages/forms/src/Components/Concerns/HasId.php @@ -2,11 +2,13 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait HasId { - protected $id = null; + protected string | Closure | null $id = null; - public function id(string | callable $id): static + public function id(string | Closure | null $id): static { $this->id = $id; diff --git a/packages/forms/src/Components/Concerns/HasLabel.php b/packages/forms/src/Components/Concerns/HasLabel.php index fc73987f79..345a9ec0da 100644 --- a/packages/forms/src/Components/Concerns/HasLabel.php +++ b/packages/forms/src/Components/Concerns/HasLabel.php @@ -2,20 +2,22 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait HasLabel { - protected $isLabelHidden = false; + protected bool | Closure $isLabelHidden = false; - protected $label = null; + protected string | Closure | null $label = null; - public function disableLabel(bool | callable $condition = true): static + public function disableLabel(bool | Closure $condition = true): static { $this->isLabelHidden = $condition; return $this; } - public function label(string | callable $label): static + public function label(string | Closure | null $label): static { $this->label = $label; diff --git a/packages/forms/src/Components/Concerns/HasMaxWidth.php b/packages/forms/src/Components/Concerns/HasMaxWidth.php index 1be5902d40..a9e72f5f2e 100644 --- a/packages/forms/src/Components/Concerns/HasMaxWidth.php +++ b/packages/forms/src/Components/Concerns/HasMaxWidth.php @@ -2,11 +2,13 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait HasMaxWidth { - protected $maxWidth = null; + protected string | Closure | null $maxWidth = null; - public function maxWidth(string | callable $width): static + public function maxWidth(string | Closure | null $width): static { $this->maxWidth = $width; diff --git a/packages/forms/src/Components/Concerns/HasPlaceholder.php b/packages/forms/src/Components/Concerns/HasPlaceholder.php index 5ee8eea303..052c0d5230 100644 --- a/packages/forms/src/Components/Concerns/HasPlaceholder.php +++ b/packages/forms/src/Components/Concerns/HasPlaceholder.php @@ -2,11 +2,13 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait HasPlaceholder { - protected $placeholder = null; + protected string | Closure | null $placeholder = null; - public function placeholder(string | callable $placeholder): static + public function placeholder(string | Closure | null $placeholder): static { $this->placeholder = $placeholder; diff --git a/packages/forms/src/Components/Concerns/HasState.php b/packages/forms/src/Components/Concerns/HasState.php index 960d3dd8da..6c9a10cc60 100644 --- a/packages/forms/src/Components/Concerns/HasState.php +++ b/packages/forms/src/Components/Concerns/HasState.php @@ -2,41 +2,42 @@ namespace Filament\Forms\Components\Concerns; +use Closure; use Filament\Forms\Components\Component; trait HasState { - protected $afterStateHydrated = null; + protected ?Closure $afterStateHydrated = null; - protected $afterStateUpdated = null; + protected ?Closure $afterStateUpdated = null; - protected $beforeStateDehydrated = null; + protected ?Closure $beforeStateDehydrated = null; protected $defaultState = null; - protected $dehydrateStateUsing = null; + protected ?Closure $dehydrateStateUsing = null; protected bool $hasDefaultState = false; - protected $isDehydrated = true; + protected bool | Closure $isDehydrated = true; protected ?string $statePath = null; - public function afterStateHydrated(?callable $callback): static + public function afterStateHydrated(?Closure $callback): static { $this->afterStateHydrated = $callback; return $this; } - public function afterStateUpdated(?callable $callback): static + public function afterStateUpdated(?Closure $callback): static { $this->afterStateUpdated = $callback; return $this; } - public function beforeStateDehydrated(?callable $callback): static + public function beforeStateDehydrated(?Closure $callback): static { $this->beforeStateDehydrated = $callback; @@ -78,7 +79,7 @@ trait HasState return $this; } - public function dehydrated(bool | callable $condition = true): static + public function dehydrated(bool | Closure $condition = true): static { $this->isDehydrated = $condition; @@ -94,7 +95,7 @@ trait HasState return $this->getState(); } - public function dehydrateStateUsing(?callable $callback): static + public function dehydrateStateUsing(?Closure $callback): static { $this->dehydrateStateUsing = $callback; @@ -170,7 +171,7 @@ trait HasState return (bool) $this->evaluate($this->isDehydrated); } - protected function getGetCallback(): callable + protected function getGetCallback(): Closure { return function (Component | string $path, bool $isAbsolute = false) { if ($path instanceof Component) { @@ -188,7 +189,7 @@ trait HasState }; } - protected function getSetCallback(): callable + protected function getSetCallback(): Closure { return function (string | Component $path, $state, bool $isAbsolute = false) { if ($path instanceof Component) { diff --git a/packages/forms/src/Components/Concerns/InteractsWithToolbarButtons.php b/packages/forms/src/Components/Concerns/InteractsWithToolbarButtons.php index 6b8bdbe2aa..af66561b47 100644 --- a/packages/forms/src/Components/Concerns/InteractsWithToolbarButtons.php +++ b/packages/forms/src/Components/Concerns/InteractsWithToolbarButtons.php @@ -2,6 +2,8 @@ namespace Filament\Forms\Components\Concerns; +use Closure; + trait InteractsWithToolbarButtons { public function disableAllToolbarButtons(bool $condition = true): static @@ -29,7 +31,7 @@ trait InteractsWithToolbarButtons return $this; } - public function toolbarButtons(array | callable $buttons = []): static + public function toolbarButtons(array | Closure $buttons = []): static { $this->toolbarButtons = $buttons; diff --git a/packages/forms/src/Components/MarkdownEditor.php b/packages/forms/src/Components/MarkdownEditor.php index 451c3cc36c..8dfc798e31 100644 --- a/packages/forms/src/Components/MarkdownEditor.php +++ b/packages/forms/src/Components/MarkdownEditor.php @@ -2,6 +2,8 @@ namespace Filament\Forms\Components; +use Closure; + class MarkdownEditor extends Field implements Contracts\HasFileAttachments { use Concerns\HasExtraAlpineAttributes; @@ -11,7 +13,7 @@ class MarkdownEditor extends Field implements Contracts\HasFileAttachments protected string $view = 'forms::components.markdown-editor'; - protected $toolbarButtons = [ + protected array | Closure $toolbarButtons = [ 'attachFiles', 'bold', 'bulletList', diff --git a/packages/forms/src/Components/MultipleFileUpload.php b/packages/forms/src/Components/MultipleFileUpload.php index 29b61fc67d..aa7c868057 100644 --- a/packages/forms/src/Components/MultipleFileUpload.php +++ b/packages/forms/src/Components/MultipleFileUpload.php @@ -78,11 +78,15 @@ class MultipleFileUpload extends Field public function minFiles(int | callable $count): static { $this->minItems($count); + + return $this; } public function maxFiles(int | callable $count): static { $this->maxItems($count); + + return $this; } public function uploadComponent(Component | callable $component): static diff --git a/packages/forms/src/Components/RichEditor.php b/packages/forms/src/Components/RichEditor.php index a9ac6e5743..35cac677f1 100644 --- a/packages/forms/src/Components/RichEditor.php +++ b/packages/forms/src/Components/RichEditor.php @@ -2,6 +2,8 @@ namespace Filament\Forms\Components; +use Closure; + class RichEditor extends Field implements Contracts\HasFileAttachments { use Concerns\HasExtraAlpineAttributes; @@ -11,7 +13,7 @@ class RichEditor extends Field implements Contracts\HasFileAttachments protected string $view = 'forms::components.rich-editor'; - protected $toolbarButtons = [ + protected array | Closure $toolbarButtons = [ 'attachFiles', 'blockquote', 'bold', diff --git a/packages/forms/src/Components/TextInput/Mask.php b/packages/forms/src/Components/TextInput/Mask.php index 87427990b5..2c995b2ce3 100644 --- a/packages/forms/src/Components/TextInput/Mask.php +++ b/packages/forms/src/Components/TextInput/Mask.php @@ -2,6 +2,7 @@ namespace Filament\Forms\Components\TextInput; +use Closure; use Illuminate\Contracts\Support\Jsonable; class Mask implements Jsonable @@ -259,7 +260,7 @@ class Mask implements Jsonable if ($this->patternBlocks !== []) { $configuration['blocks'] = array_map( - fn (callable $configuration): array => $configuration(new static())->getArrayableConfiguration(), + fn (Closure $configuration): array => $configuration(new static())->getArrayableConfiguration(), $this->patternBlocks, ); } diff --git a/packages/forms/src/Concerns/HasComponents.php b/packages/forms/src/Concerns/HasComponents.php index 3d747186c4..e197edb66b 100644 --- a/packages/forms/src/Concerns/HasComponents.php +++ b/packages/forms/src/Concerns/HasComponents.php @@ -24,7 +24,7 @@ trait HasComponents return $this; } - public function getComponent(string | callable $callback, bool $withHidden = false): ?Component + public function getComponent(string | Closure $callback, bool $withHidden = false): ?Component { $callback = $callback instanceof Closure ? $callback diff --git a/packages/spatie-laravel-media-library-plugin/src/Forms/Components/SpatieMediaLibraryFileUpload.php b/packages/spatie-laravel-media-library-plugin/src/Forms/Components/SpatieMediaLibraryFileUpload.php index 40fd035b3d..0cb9e25b9d 100644 --- a/packages/spatie-laravel-media-library-plugin/src/Forms/Components/SpatieMediaLibraryFileUpload.php +++ b/packages/spatie-laravel-media-library-plugin/src/Forms/Components/SpatieMediaLibraryFileUpload.php @@ -2,6 +2,7 @@ namespace Filament\Forms\Components; +use Closure; use League\Flysystem\AwsS3v3\AwsS3Adapter; use Spatie\MediaLibrary\HasMedia; use Spatie\MediaLibrary\MediaCollections\Models\Media; @@ -9,7 +10,7 @@ use SplFileInfo; class SpatieMediaLibraryFileUpload extends FileUpload { - protected $collection = null; + protected string | Closure | null $collection = null; protected function setUp(): void { @@ -28,7 +29,7 @@ class SpatieMediaLibraryFileUpload extends FileUpload $this->dehydrated(false); } - public function collection(string | callable $collection): static + public function collection(string | Closure | null $collection): static { $this->collection = $collection; diff --git a/packages/spatie-laravel-media-library-plugin/src/Forms/Components/SpatieMediaLibraryMultipleFileUpload.php b/packages/spatie-laravel-media-library-plugin/src/Forms/Components/SpatieMediaLibraryMultipleFileUpload.php index cd13f4e080..a724e47601 100644 --- a/packages/spatie-laravel-media-library-plugin/src/Forms/Components/SpatieMediaLibraryMultipleFileUpload.php +++ b/packages/spatie-laravel-media-library-plugin/src/Forms/Components/SpatieMediaLibraryMultipleFileUpload.php @@ -2,11 +2,12 @@ namespace Filament\Forms\Components; +use Closure; use Spatie\MediaLibrary\HasMedia; class SpatieMediaLibraryMultipleFileUpload extends MultipleFileUpload { - protected $collection = null; + protected string | Closure | null $collection = null; protected function setUp(): void { @@ -42,7 +43,7 @@ class SpatieMediaLibraryMultipleFileUpload extends MultipleFileUpload return $files; } - public function collection(string | callable $collection): static + public function collection(string | Closure | null $collection): static { $this->collection = $collection; diff --git a/packages/spatie-laravel-tags-plugin/src/Forms/Components/SpatieTagsInput.php b/packages/spatie-laravel-tags-plugin/src/Forms/Components/SpatieTagsInput.php index 96b04e1148..43362a6826 100644 --- a/packages/spatie-laravel-tags-plugin/src/Forms/Components/SpatieTagsInput.php +++ b/packages/spatie-laravel-tags-plugin/src/Forms/Components/SpatieTagsInput.php @@ -2,13 +2,14 @@ namespace Filament\Forms\Components; +use Closure; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Spatie\Tags\Tag; class SpatieTagsInput extends TagsInput { - protected $type = null; + protected string | Closure | null $type = null; protected function setUp(): void { @@ -50,7 +51,7 @@ class SpatieTagsInput extends TagsInput $model->syncTags($tags); } - public function type(string | callable $type): static + public function type(string | Closure | null $type): static { $this->type = $type; diff --git a/packages/spatie-laravel-tags-plugin/src/Tables/Columns/SpatieTagsColumn.php b/packages/spatie-laravel-tags-plugin/src/Tables/Columns/SpatieTagsColumn.php index 66f68ef517..3c19f91d20 100644 --- a/packages/spatie-laravel-tags-plugin/src/Tables/Columns/SpatieTagsColumn.php +++ b/packages/spatie-laravel-tags-plugin/src/Tables/Columns/SpatieTagsColumn.php @@ -14,7 +14,7 @@ class SpatieTagsColumn extends TagsColumn return $tags->pluck('name')->toArray(); } - public function type(string | callable $type): static + public function type(?string $type): static { $this->type = $type; diff --git a/phpstan.neon b/phpstan.neon deleted file mode 100644 index f05edb640c..0000000000 --- a/phpstan.neon +++ /dev/null @@ -1,6 +0,0 @@ -parameters: - paths: - - packages/forms/src - - packages/spatie-laravel-media-library-plugin/src - - packages/spatie-laravel-tags-plugin/src - level: 5 diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000000..9d76729f92 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,10 @@ +parameters: + paths: + - packages/admin/src + - packages/forms/src + - packages/spatie-laravel-media-library-plugin/src + - packages/spatie-laravel-settings-plugin/src + - packages/spatie-laravel-tags-plugin/src + - packages/spatie-laravel-translatable-plugin/src + - packages/tables/src + level: 0