Skip to content

Commit cc69551

Browse files
authored
Merge pull request #12292 from nextcloud/bugfix/noid/8.4-support
feat(developer): Mention PHP 8.4 support
2 parents bb8533b + 89793e8 commit cc69551

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

admin_manual/installation/php_configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,4 @@ You can search for a parameter with the following command: ``grep -r date.timezo
128128
/etc/php/8.3/cli/php.ini
129129

130130
.. note:: Path names have to be set in respect of the installed PHP
131-
(8.1, 8.2 or 8.3) as applicable.
131+
(8.1, 8.2, 8.3 or 8.4) as applicable.

admin_manual/installation/system_requirements.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ For best performance, stability and functionality we have documented some recomm
3535
| PHP Runtime | - 8.1 (*deprecated*) |
3636
| | - 8.2 |
3737
| | - **8.3** (*recommended*) |
38+
| | - 8.4 |
3839
+------------------+-----------------------------------------------------------------------+
3940

4041
See :doc:`source_installation` for minimum PHP-modules and additional software for installing Nextcloud.

admin_manual/release_notes/upgrade_to_31.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ System requirements
66
-------------------
77

88
* PHP 8.1 is now deprecated but still supported.
9+
* PHP 8.4 is now supported, but 8.3 is recommended.
910

1011
PHP configuration
1112
-----------------

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,39 @@ Removed APIs
6565
Back-end changes
6666
----------------
6767

68+
Support for PHP 8.4 added
69+
^^^^^^^^^^^^^^^^^^^^^^^^^
70+
71+
In this release support for PHP 8.4 was added. Follow the steps below to make your app compatible.
72+
73+
1. If ``appinfo/info.xml`` has a dependency specification for PHP, increase the ``max-version`` to 8.4.
74+
However, it is recommended to always support all PHP versions that are compatible with supported Nextcloud version.
75+
In that case the ``php``-dependencies entries can be omitted.
76+
77+
.. code-block:: xml
78+
79+
<dependencies>
80+
<php min-version="8.1" max-version="8.4" />
81+
<nextcloud min-version="29" max-version="31" />
82+
</dependencies>
83+
84+
85+
2. If your app has a ``composer.json`` and the file contains the PHP restrictions from ``info.xml``, adjust it as well.
86+
87+
.. code-block:: json
88+
89+
{
90+
"require": {
91+
"php": ">=8.1 <=8.4"
92+
}
93+
}
94+
95+
3. If you have :ref:`continuous integration <app-ci>` set up, extend your test matrix with PHP 8.4 tests and linters.
96+
This happens automatically when you reuse our `GitHub Workflow templates <https://github.com/nextcloud/.github>`__,
97+
but you can also use the underlying `icewind1991/nextcloud-version-matrix Action <https://github.com/icewind1991/nextcloud-version-matrix>`__ directly.
98+
99+
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>`__.
100+
68101
Added APIs
69102
^^^^^^^^^^
70103

0 commit comments

Comments
 (0)