Commit graph

21 commits

Author SHA1 Message Date
Vitor Mattos
6e58c44bd6
fix: bump PHP version at psalm to 8.2
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-10-07 18:35:05 -03:00
Vitor Mattos
934d1523ff
chore: remove referencies to Vendor folder
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-10-07 16:01:53 -03:00
Vitor Mattos
07a231aea2
fix: isolate PHP-pdftk dependency
I identified some issues with the follow log:

```
[PHP] Warning: include(): Failed opening '<redacted>/apps/richdocuments/vendor/composer/../mikehaertl/php-pdftk/src/Pdf.php' for inclusion (include_path='<redacted>/3rdparty/pear/archive_tar:/<redacted>/3rdparty/pear/console_getopt:<redacted>/3rdparty/pear/pear-core-minimal/src:/<redacted>/3rdparty/pear/pear_exception:/<redacted>/apps') at /<redacted>/lib/composer/composer/ClassLoader.php#576
	GET /ocs/v2.php/apps/libresign/api/v1/file/validate/file_id/2556
```

It's only occurr when use the app richdocuments, I saw that the package
mikehaertl/php-pdftk also is used by this app and because this the
autoload was mixed.

To solve this issue I used the package humbug/php-scoper that isolate
the dependency into a different namespace.

I also followed this article:

https://arthur-schiwon.de/isolating-nextcloud-app-dependencies-php-scoper

And the follow search results to see implementation examples:

https://github.com/search?q=OCA+path%3Ascoper.inc.php&type=code
https://github.com/search?q=org%3Anextcloud+path%3Ascoper.inc.php&type=code

Considering that we already have tests to cover the usage of pdftk,
isn't necessary to add new tests, if the test pass, this change worked
fine because loaded the isolated packages and the isolated packages made
the necessary.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-09-03 09:55:55 -03:00
Vitor Mattos
0401cf1623
chore: bump psalm
Signed-off-by: Vitor Mattos <vitor@php.rio>
2025-02-24 09:15:17 -03:00
Vitor Mattos
8b4f4c42fe
chore: Replace template engine
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-10-22 20:41:32 -03:00
Vitor Mattos
a8a265b1f8
fix: occ command
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-07-03 15:51:55 -03:00
Vitor Mattos
dec3e8678b
fix: sign setup when build
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-07-01 19:51:05 -03:00
Vitor Mattos
85397f432e
chore: bump psalm
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-05-31 02:32:44 -03:00
Vitor Mattos
016a52a8f2
chore: make psalm more restrictive
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-05-14 17:13:42 -03:00
Vitor Mattos
cd5d08f44c
Add stubs to psalm
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-02-02 15:08:29 -03:00
Vitor Mattos
5543a3de7f
Fix psalm errors
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-10-27 13:05:53 -03:00
Vitor Mattos
d71d0820db
Prevent error using private class
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-10-27 12:09:56 -03:00
Vitor Mattos
41c25a13a8
Suppress Guzzle error
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-10-27 11:43:26 -03:00
Vitor Mattos
2382868e4d
Fix guzzle errors
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-10-27 11:35:08 -03:00
Vitor Mattos
b31df5c7a0
Suppress guzzle error
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-10-27 11:30:11 -03:00
Vitor Mattos
ee6ec99df1
Suppress undefined class
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-10-27 11:15:19 -03:00
Vitor Mattos
2c7edec5aa
Suppress Doctrine class
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-10-27 11:12:31 -03:00
Vitor Mattos
9c962e52ba
Ignore core private usage
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-10-27 10:02:31 -03:00
Vitor Mattos
d446810173
Fix psalm issues 2022-09-10 13:29:27 -03:00
Vitor Mattos
8bab0b6b51 Many fixes after run psalm 2021-10-11 19:27:33 -03:00
Vitor Mattos
c385ffcd70 Start implementing psalm 2021-10-11 13:26:20 -03:00