feat(developer): List PHP 8.4 support

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling
2024-10-17 15:08:09 +02:00
parent 246cc7a4e0
commit 320efe4f49
2 changed files with 35 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ In this release support for PHP 8.0 was removed. Follow the steps below to make
.. code-block:: xml
<dependencies>
<php min-version="8.1" max-version="8.3" />
<php min-version="8.1" max-version="8.4" />
<nextcloud min-version="27" max-version="30" />
</dependencies>
@@ -145,7 +145,7 @@ In this release support for PHP 8.0 was removed. Follow the steps below to make
{
"require": {
"php": ">=8.1 <=8.3"
"php": ">=8.1 <=8.4"
}
}

View File

@@ -65,6 +65,39 @@ Removed APIs
Back-end changes
----------------
Support for PHP 8.4 added
^^^^^^^^^^^^^^^^^^^^^^^^^
In this release support for PHP 8.4 was added. Follow the steps below to make your app compatible.
1. If ``appinfo/info.xml`` has a dependency specification for PHP, increase the ``max-version`` to 8.4.
However, it is recommended to always support all PHP versions that are compatible with supported Nextcloud version.
In that case the ``php``-dependencies entries can be omitted.
.. code-block:: xml
<dependencies>
<php min-version="8.1" max-version="8.4" />
<nextcloud min-version="26" max-version="28" />
</dependencies>
2. If your app has a ``composer.json`` and the file contains the PHP restrictions from ``info.xml``, adjust it as well.
.. code-block:: json
{
"require": {
"php": ">=8.1 <=8.4"
}
}
3. If you have :ref:`continuous integration <app-ci>` set up, extend your test matrix with PHP 8.4 tests and linters.
This happens automatically when you reuse our `GitHub Workflow templates <https://github.com/nextcloud/.github>`__,
but you can also use the underlying `icewind1991/nextcloud-version-matrix Action <https://github.com/icewind1991/nextcloud-version-matrix>`__ directly.
Information about code changes can be found on `php.net <https://www.php.net/migration84>`__ and `stitcher.io <https://stitcher.io/blog/new-in-php-84>`__.
Added APIs
^^^^^^^^^^