Rationalize dependencies

Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
Louis Chemineau 2023-12-12 12:52:18 +01:00
parent db51bc4f61
commit ea4f4599f8
No known key found for this signature in database
4 changed files with 935 additions and 1975 deletions

View File

@ -9,7 +9,7 @@
"bamarni/composer-bin-plugin": true "bamarni/composer-bin-plugin": true
}, },
"platform": { "platform": {
"php": "8.0" "php": "8.0.2"
} }
}, },
"autoload": { "autoload": {
@ -21,21 +21,22 @@
"cs:fix": "php-cs-fixer fix", "cs:fix": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff", "cs:check": "php-cs-fixer fix --dry-run --diff",
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l", "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
"psalm": "psalm --threads=1", "psalm": "psalm.phar --threads=1",
"psalm:update-baseline": "psalm --threads=1 --update-baseline", "psalm:update-baseline": "psalm.phar --threads=1 --update-baseline",
"psalm:clear": "psalm --clear-cache && psalm --clear-global-cache", "psalm:clear": "psalm.phar --clear-cache && psalm --clear-global-cache",
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType", "psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
"test:unit": "echo 'Only testing installation of the app'" "test:unit": "echo 'Only testing installation of the app'"
}, },
"require-dev": { "require-dev": {
"bamarni/composer-bin-plugin": "^1.8", "bamarni/composer-bin-plugin": "^1.8",
"nextcloud/coding-standard": "1.1.1", "nextcloud/coding-standard": "1.1.1",
"nextcloud/ocp": "dev-master",
"phpunit/phpunit": "^9", "phpunit/phpunit": "^9",
"sabre/dav": "^4.2.1", "sabre/dav": "^4.2.1",
"vimeo/psalm": "^4.22" "nextcloud/ocp": "dev-master",
"psalm/phar": "^5.17",
"symfony/console": "5.4.24"
}, },
"require": { "require": {
"hexogen/kdtree": "^0.2.5" "hexogen/kdtree": "^0.2.5"
} }
} }

2889
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -111,6 +111,6 @@ class Application extends App implements IBootstrap {
public function boot(IBootContext $context): void { public function boot(IBootContext $context): void {
/** @var IFilesMetadataManager $metadataManager */ /** @var IFilesMetadataManager $metadataManager */
$metadataManager = $context->getServerContainer()->get(IFilesMetadataManager::class); $metadataManager = $context->getServerContainer()->get(IFilesMetadataManager::class);
$metadataManager->initMetadata('photos-original_date_time', IMetadataValueWrapper::TYPE_INT, true); $metadataManager->initMetadata('photos-original_date_time', IMetadataValueWrapper::TYPE_INT, true, IMetadataValueWrapper::EDIT_FORBIDDEN);
} }
} }

View File

@ -143,6 +143,8 @@ class ExifMetadataProvider implements IEventListener {
* Exif data can contain anything. * Exif data can contain anything.
* This method will base 64 encode any non UTF-8 string in an array. * This method will base 64 encode any non UTF-8 string in an array.
* This will also remove control characters from UTF-8 strings. * This will also remove control characters from UTF-8 strings.
*
* @param array<string, string> $data
*/ */
private function sanitizeEntries(array $data): array { private function sanitizeEntries(array $data): array {
$cleanData = []; $cleanData = [];