Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document PHP 8.3 support #11195

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions admin_manual/installation/system_requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ For best performance, stability and functionality we have documented some recomm
| PHP Runtime | - 8.0 (*deprecated*) |
| | - 8.1 |
| | - **8.2** (*recommended*) |
| | - 8.3 |
+------------------+-----------------------------------------------------------------------+

See :doc:`source_installation` for minimum PHP-modules and additional software for installing Nextcloud.
Expand Down
2 changes: 1 addition & 1 deletion admin_manual/release_notes/upgrade_to_27.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ System requirements
-------------------

* PHP 8.2 is recommended over PHP 8.1.
* PHP 8.0 is deprecated and will be removed in Nextcloud 28.
* PHP 8.0 is deprecated and might be removed in Nextcloud 28.

Exposed system address book
---------------------------
Expand Down
7 changes: 6 additions & 1 deletion admin_manual/release_notes/upgrade_to_28.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
Upgrade to Nextcloud 28
=======================

To be documented
System requirements
-------------------

* PHP 8.3 is now supported, but 8.2 is recommended.

To be documented
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,35 @@ Removed APIs
Back-end changes
----------------

PHP 8.3
^^^^^^^

In this release support for PHP 8.3 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.3.

.. code-block:: xml

<dependencies>
<php min-version="8.0" max-version="8.3" />
<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.0 <=8.3"
}
}

3. If you have :ref:`continuous integration <app-ci>` set up, extend your test matrix with PHP 8.3 tests and linters.

Information about code changes can be found on `php.net <https://www.php.net/migration83>`__ and `stitcher.io <https://stitcher.io/blog/new-in-php-83>`__.

Development dependency hell
^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down