Skip to content

Commit 8a713be

Browse files
Merge pull request #12283 from nextcloud/feat/dev/upgrade-31-storage-return-param-types
2 parents baa61c4 + d634460 commit 8a713be

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ Changed APIs
7676
^^^^^^^^^^^^
7777

7878
- Clarify ``OCP\Files\Storage\IStorage::getOwner()`` returns ``string|false``.
79+
- Added method parameter and return types to all inheritors of ``OCP\Files\Storage\IStorage``. To migrate in a backwards compatible manner:
80+
81+
#. Add all return types to your implementation now.
82+
#. Add all parameter types to your implementation once Nextcloud 31 is the lowest supported version.
83+
7984
- The Nextcloud implementation of the ``log`` method of ``Psr\Log\LoggerInterface`` now supports ``Psr\Log\LogLevel`` as log level parameter.
8085

8186
Deprecated APIs
@@ -98,4 +103,4 @@ Removed APIs
98103
- The ``OCP\ILogger`` interface can no longer be dependency injected as it now only holds constants.
99104
- ``OCP\IServerContainer::getLogger`` was removed, use dependency injection with ``Psr\Log\LoggerInterface`` instead.
100105
- The internal class ``OC\AppFramework\Logger`` was removed, it should have been never used by apps.
101-
All using apps should migrate to ``Psr\Log\LoggerInterface``.
106+
All using apps should migrate to ``Psr\Log\LoggerInterface``.

0 commit comments

Comments
 (0)