rotdrop / nextcloud-app-files-archive

Archive inspection and extraction as Nextcloud app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nextcloud v28 support [was: Error, PHP Deprecated]

teemue opened this issue · comments

The following error occurred during occ files:scan --all:

PHP Deprecated:  Return type of OCA\FilesArchive\Db\ArchiveMount::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/custom_apps/files_archive/lib/Db/ArchiveMount.php on line 93

NC 28.0.0
PHP: 8.2.13

Archive Manager is not listed as having support for NC 28

Hi there,

it is unfortunately not as easy as just incrementing the version number in info.xml. However, I am currently working on porting several apps to NC 28, so this will be addressed sooner or later (depending on the time I can spend on hacking NC apps).

Ok, pdf_downloader has more or less been ported to v28 and I am working on this one now. Things look good so far. Things work differently but in principle are easier to implement. In particular the file-list updates are easier to handle via the new NC event bus stuff.

The following error occurred during occ files:scan --all:

PHP Deprecated:  Return type of OCA\FilesArchive\Db\ArchiveMount::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/custom_apps/files_archive/lib/Db/ArchiveMount.php on line 93

NC 28.0.0 PHP: 8.2.13

Fixed in ec034fe

Ok, pdf_downloader has more or less been ported to v28 and I am working on this one now. Things look good so far. Things work differently but in principle are easier to implement. In particular the file-list updates are easier to handle via the new NC event bus stuff.

Maybe the stuff now works properly with NC 28:

  • use the event-bus in order to track and initiate front-end changes
  • listen on notifications in order to update the frontend
  • improve the use of the file-cache to make listings more efficient

The stable28 branch contains compiled assets. It may or may not work for you, but in principle it should be possible to just check it out with git. There will be a pre-release and maybe a release for NC 28 over the weekend. I can be that I just leave the code for NC 27 and 26 as is (but for issues reported).

Closing this with the release of v1.2.0