Fixed some warnings and errors. (#9924)

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
This commit is contained in:
Alexander Piskun
2023-03-20 16:21:36 +03:00
committed by GitHub
parent e263e10e43
commit 13255982be
5 changed files with 8 additions and 10 deletions

View File

@@ -84,7 +84,7 @@ becomes
$container->registerService('DecryptAll', function (ContainerInterface $c) {
return new DecryptAll(
$c->get('Util'),
$c->get(KeyManager::class'),
$c->get(KeyManager::class),
$c->get('Crypt'),
$c->get(ISession::class)
)

View File

@@ -2,7 +2,8 @@
Upgrade to Nextcloud 26
=======================
.. note:: Critical changes were collected `on GitHub <https://github.com/nextcloud/server/issues/34692>`__. See the original ticket for links to the pull requests and tickets.
.. note:: Critical changes were collected `on GitHub <https://github.com/nextcloud/server/issues/34692>`_.
See the original ticket for links to the pull requests and tickets.
General
-------
@@ -14,9 +15,9 @@ Make sure your ``appinfo/info.xml`` allows for Nextcloud 26.
.. code-block:: xml
<dependencies>
<nextcloud min-version="23" max-version="26" />
</dependencies>
<dependencies>
<nextcloud min-version="23" max-version="26" />
</dependencies>
Personal settings section *Groupware* moved to *Availability*
-------------------------------------------------------------

View File

@@ -226,7 +226,7 @@ Nextcloud will read existing session data at the beginning of the request lifecy
Alternatively, you can use the ``#[UseSession]`` attribute to automatically open and close the session for you.
.. code-block:: php
:emphasize-lines: 2,13
:emphasize-lines: 2,7
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\UseSession;

View File

@@ -24,7 +24,6 @@ Access to the filesystem is provided by the ``IRootFolder`` which can be injecte
From the root folder you can either access a user's home folder or access a file or folder by its absolute path.
.. code-block:: php
<?php
use OCP\Files\IRootFolder;
use OCP\IUserSession;
@@ -63,7 +62,6 @@ Writing to a file
All methods return a Folder object on which files and folders can be accessed, or filesystem operations can be performed relatively to their root. For instance for writing to file:`nextcloud/data/myfile.txt` you should get the root folder and use:
.. code-block:: php
<?php
use OCP\Files\IRootFolder;
@@ -105,7 +103,6 @@ Reading from a file
Files and folders can also be accessed by id, by calling the **getById** method on the folder.
.. code-block:: php
<?php
use OCP\Files\IRootFolder;

View File

@@ -105,7 +105,7 @@ Afterwards you'll be able to check the app with the following ``psalm.xml`` that
You can put this process into a GitHub Action that is run for every pull request.
Check our `simple github action <https://github.com/nextcloud/.github/blob/master/workflow-templates/psalm.yml>`_ from
Check our `psalm github action <https://github.com/nextcloud/.github/blob/master/workflow-templates/psalm.yml>`_ from
our `nextcloud template repository <https://github.com/nextcloud/.github>`_.
If you want to support multiple versions of Nextcloud server with a single app version, checkout this slightly