diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4bc082d1..95ff2f27 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: '8.1' - name: Setup Docker run: docker compose up -d --build diff --git a/Dockerfile b/Dockerfile index 54c948a6..38b03da1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN composer install --ignore-platform-reqs --optimize-autoloader \ --no-plugins --no-scripts --prefer-dist \ `if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi` -FROM php:8.0-cli-alpine as final +FROM php:8.1-cli-alpine as final LABEL maintainer="team@appwrite.io" ENV DEBIAN_FRONTEND=noninteractive \ diff --git a/README.md b/README.md index ac3fc084..712c57ba 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ $app->run($request, $response); ## System Requirements -Utopia Framework requires PHP 8.0 or later. We recommend using the latest PHP version whenever possible. +Utopia Framework requires PHP 8.1 or later. We recommend using the latest PHP version whenever possible. ## More from Utopia diff --git a/composer.json b/composer.json index e280d28c..eb2e9a9f 100644 --- a/composer.json +++ b/composer.json @@ -22,16 +22,10 @@ "bench": "vendor/bin/phpbench run --report=benchmark" }, "require": { - "php": ">=8.0", + "php": ">=8.1", "utopia-php/compression": "0.1.*", - "utopia-php/telemetry": "dev-initial-commit" + "utopia-php/telemetry": "0.1.*" }, - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/utopia-php/telemetry" - } - ], "require-dev": { "phpunit/phpunit": "^9.5.25", "laravel/pint": "^1.2", diff --git a/composer.lock b/composer.lock index b78ac481..a875dd46 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "28c0e77977607f0de243f49adfe583bc", + "content-hash": "bac3d7f9e6552a0c0742b6b95c94ed76", "packages": [ { "name": "brick/math", @@ -1839,16 +1839,16 @@ }, { "name": "utopia-php/telemetry", - "version": "dev-initial-commit", + "version": "0.1.0", "source": { "type": "git", "url": "https://github.com/utopia-php/telemetry.git", - "reference": "5023d4cbcd4691a802df8cd115fd6fb767536c5b" + "reference": "d35f2f0632f4ee0be63fb7ace6a94a6adda71a80" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/telemetry/zipball/5023d4cbcd4691a802df8cd115fd6fb767536c5b", - "reference": "5023d4cbcd4691a802df8cd115fd6fb767536c5b", + "url": "https://api.github.com/repos/utopia-php/telemetry/zipball/d35f2f0632f4ee0be63fb7ace6a94a6adda71a80", + "reference": "d35f2f0632f4ee0be63fb7ace6a94a6adda71a80", "shasum": "" }, "require": { @@ -1872,23 +1872,7 @@ "Utopia\\": "src/" } }, - "scripts": { - "lint": [ - "vendor/bin/pint --test" - ], - "format": [ - "vendor/bin/pint" - ], - "check": [ - "vendor/bin/phpstan analyse -c phpstan.neon" - ], - "test": [ - "vendor/bin/phpunit --configuration phpunit.xml" - ], - "bench": [ - "vendor/bin/phpbench run --report=benchmark" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], @@ -1898,10 +1882,10 @@ "upf" ], "support": { - "source": "https://github.com/utopia-php/telemetry/tree/initial-commit", - "issues": "https://github.com/utopia-php/telemetry/issues" + "issues": "https://github.com/utopia-php/telemetry/issues", + "source": "https://github.com/utopia-php/telemetry/tree/0.1.0" }, - "time": "2024-11-12T10:11:09+00:00" + "time": "2024-11-13T10:29:53+00:00" } ], "packages-dev": [ @@ -4966,9 +4950,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "utopia-php/telemetry": 20 - }, + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/src/App.php b/src/App.php index 06d88365..fc88cecf 100755 --- a/src/App.php +++ b/src/App.php @@ -162,7 +162,7 @@ public function setCompressionSupported(mixed $compressionSupported) * @param Telemetry $telemetry * @return void */ - public function setTelemetry(Telemetry $telemetry) + public function setTelemetry(Telemetry $telemetry): void { // https://opentelemetry.io/docs/specs/semconv/http/http-metrics/#metric-httpserverrequestduration $this->requestDuration = $telemetry->createHistogram(