Skip to content

Commit

Permalink
Add support for PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Nov 30, 2023
1 parent 2c0e78d commit f5f499b
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/emulator-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest

env:
php-version: '8.1'
php-version: '8.2'
extensions: ctype, dom, grpc, json, mbstring, openssl, xml, zip, zlib
key: cache-emulators-7x-${{ matrix.php }}-v1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest

env:
php-version: '8.1'
php-version: '8.2'
extensions: ctype, dom, grpc, json, mbstring, openssl, xml, zip, zlib
key: cache-integration-7x-${{ matrix.php }}-v1

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
php:
- "8.1"
- "8.2"
- "8.3"

env:
extensions: ctype, dom, grpc, json, mbstring, openssl, xml, zip, zlib
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Please read about the future of the Firebase Admin PHP SDK on the

## [Unreleased]

### Added

* Added support for PHP 8.3

## [7.8.0] - 2023-11-25

### Added
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ composer require "kreait/firebase-php:^7.0"
Earlier versions will receive security fixes as long as their **lowest** PHP requirement receives security fixes. For
example, when a version supports PHP 7.4 and PHP 8.0, security support will end when security support for PHP 7.4 ends.

| Version | Initial Release | Supported PHP Versions | Status |
|---------|-----------------|------------------------|-------------|
| `7.x` | 20 Dec 2022 | `~8.1.0, ~8.2.0` | Active |
| `6.x` | 01 Jul 2022 | `^7.4, ^8.0` | End of life |
| `5.x` | 01 Apr 2020 | `^7.2` | End of life |
| `4.x` | 14 Feb 2018 | `^7.0` | End of life |
| `3.x` | 22 Apr 2017 | `^7.0` | End of life |
| `2.x` | 06 Nov 2016 | `^7.0` | End of life |
| `1.x` | 15 Jul 2016 | `^5.5, ^7.0` | End of life |
| `0.x` | 09 Jan 2015 | `>=5.4` | End of life |
| Version | Initial Release | Supported PHP Versions | Status |
|---------|-----------------|--------------------------|-------------|
| `7.x` | 20 Dec 2022 | `~8.1.0, ~8.2.0, ~8.3.0` | Active |
| `6.x` | 01 Jul 2022 | `^7.4, ^8.0` | End of life |
| `5.x` | 01 Apr 2020 | `^7.2` | End of life |
| `4.x` | 14 Feb 2018 | `^7.0` | End of life |
| `3.x` | 22 Apr 2017 | `^7.0` | End of life |
| `2.x` | 06 Nov 2016 | `^7.0` | End of life |
| `1.x` | 15 Jul 2016 | `^5.5, ^7.0` | End of life |
| `0.x` | 09 Jan 2015 | `>=5.4` | End of life |

<table>
<body>
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"require": {
"php": "~8.1.0|~8.2.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"ext-ctype": "*",
"ext-filter": "*",
"ext-json": "*",
Expand All @@ -50,14 +50,14 @@
"psr/log": "^1.1|^2.0|^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.34.1",
"google/cloud-firestore": "^1.37.3",
"friendsofphp/php-cs-fixer": "^3.40.0",
"google/cloud-firestore": "^1.37.7",
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan": "^1.10.38",
"phpstan/phpstan-phpunit": "^1.3.14",
"phpunit/phpunit": "^10.4.1",
"phpstan/phpstan": "^1.10.46",
"phpstan/phpstan-phpunit": "^1.3.15",
"phpunit/phpunit": "^10.4.2",
"rector/rector": "~0.17.13",
"symfony/var-dumper": "^6.3.5"
"symfony/var-dumper": "^6.3.5 || ^7.0"
},
"suggest": {
"google/cloud-firestore": "^1.0 to use the Firestore component"
Expand Down
2 changes: 1 addition & 1 deletion docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Overview
Requirements
************

* PHP 8.1.x or 8.2.x
* PHP 8.1, 8.2, or 8.3
* The `mbstring PHP extension <http://php.net/manual/en/book.mbstring.php>`_
* A Firebase project - create a new project in the `Firebase console <https://firebase.google.com/console/>`_,
if you don't already have one.
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Http/MiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class MiddlewareTest extends UnitTestCase
protected function setUp(): void
{
$this->request = new Request('GET', 'http://domain.example');
$this->handler = static fn (RequestInterface $request) => $request;
$this->handler = static fn(RequestInterface $request) => $request;
}

#[Test]
Expand Down

0 comments on commit f5f499b

Please sign in to comment.