chore: bump dependencies

Signed-off-by: Vitor Mattos <vitor@php.rio>
This commit is contained in:
Vitor Mattos 2024-09-19 09:20:27 -03:00
parent ed1af77c7a
commit d83f4370fa
No known key found for this signature in database
GPG key ID: B7AB4B76A7CA7318
44 changed files with 182 additions and 120 deletions

37
composer.lock generated
View file

@ -1523,12 +1523,12 @@
"source": {
"type": "git",
"url": "https://github.com/nextcloud-deps/ocp.git",
"reference": "fc2066f5662af0b25eeaf83d1f0ffbccd4dc7c56"
"reference": "e3a87a417a6d51eda630e1bd56f0a42c9d277ec8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/fc2066f5662af0b25eeaf83d1f0ffbccd4dc7c56",
"reference": "fc2066f5662af0b25eeaf83d1f0ffbccd4dc7c56",
"url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/e3a87a417a6d51eda630e1bd56f0a42c9d277ec8",
"reference": "e3a87a417a6d51eda630e1bd56f0a42c9d277ec8",
"shasum": ""
},
"require": {
@ -1560,7 +1560,7 @@
"issues": "https://github.com/nextcloud-deps/ocp/issues",
"source": "https://github.com/nextcloud-deps/ocp/tree/master"
},
"time": "2024-09-12T00:40:38+00:00"
"time": "2024-09-19T08:25:34+00:00"
},
{
"name": "psr/clock",
@ -1719,12 +1719,12 @@
"source": {
"type": "git",
"url": "https://github.com/Roave/SecurityAdvisories.git",
"reference": "ed0688c3e18bf76d2a17fb243b99acb52c2e29ef"
"reference": "22aca9a3467be44288882a3bcf7f2865abe08ca3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/ed0688c3e18bf76d2a17fb243b99acb52c2e29ef",
"reference": "ed0688c3e18bf76d2a17fb243b99acb52c2e29ef",
"url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/22aca9a3467be44288882a3bcf7f2865abe08ca3",
"reference": "22aca9a3467be44288882a3bcf7f2865abe08ca3",
"shasum": ""
},
"conflict": {
@ -1821,13 +1821,13 @@
"codeigniter4/shield": "<1.0.0.0-beta8",
"codiad/codiad": "<=2.8.4",
"composer/composer": "<1.10.27|>=2,<2.2.24|>=2.3,<2.7.7",
"concrete5/concrete5": "<9.3.3",
"concrete5/concrete5": "<9.3.4",
"concrete5/core": "<8.5.8|>=9,<9.1",
"contao-components/mediaelement": ">=2.14.2,<2.21.1",
"contao/comments-bundle": ">=2,<4.13.40|>=5.0.0.0-RC1-dev,<5.3.4",
"contao/contao": ">=3,<3.5.37|>=4,<4.4.56|>=4.5,<4.9.40|>=4.10,<4.11.7|>=4.13,<4.13.21|>=5.1,<5.1.4",
"contao/core": "<3.5.39",
"contao/core-bundle": "<4.13.40|>=5,<5.3.4",
"contao/core-bundle": "<4.13.49|>=5,<5.3.15|>=5.4,<5.4.3",
"contao/listing-bundle": ">=3,<=3.5.30|>=4,<4.4.8",
"contao/managed-edition": "<=1.5",
"corveda/phpsandbox": "<1.3.5",
@ -1835,8 +1835,9 @@
"craftcms/cms": "<4.6.2|>=5,<=5.2.2",
"croogo/croogo": "<4",
"cuyz/valinor": "<0.12",
"czim/file-handling": "<1.5|>=2,<2.3",
"czproject/git-php": "<4.0.3",
"damienharper/auditor-bundle": "<6",
"damienharper/auditor-bundle": "<5.2.6",
"dapphp/securimage": "<3.6.6",
"darylldoyle/safe-svg": "<1.9.10",
"datadog/dd-trace": ">=0.30,<0.30.2",
@ -1992,7 +1993,7 @@
"in2code/femanager": "<5.5.3|>=6,<6.3.4|>=7,<7.2.3",
"in2code/ipandlanguageredirect": "<5.1.2",
"in2code/lux": "<17.6.1|>=18,<24.0.2",
"in2code/powermail": "<7.5|>=8,<8.5|>=9,<10.9|>=11,<12.4",
"in2code/powermail": "<7.5.1|>=8,<8.5.1|>=9,<10.9.1|>=11,<12.4.1",
"innologi/typo3-appointments": "<2.0.6",
"intelliants/subrion": "<4.2.2",
"inter-mediator/inter-mediator": "==5.5",
@ -2022,7 +2023,7 @@
"kelvinmo/simplexrd": "<3.1.1",
"kevinpapst/kimai2": "<1.16.7",
"khodakhah/nodcms": "<=3",
"kimai/kimai": "<2.16",
"kimai/kimai": "<=2.20.1",
"kitodo/presentation": "<3.2.3|>=3.3,<3.3.4",
"klaviyo/magento2-extension": ">=1,<3",
"knplabs/knp-snappy": "<=1.4.2",
@ -2055,7 +2056,7 @@
"lms/routes": "<2.1.1",
"localizationteam/l10nmgr": "<7.4|>=8,<8.7|>=9,<9.2",
"luyadev/yii-helpers": "<1.2.1",
"magento/community-edition": "<2.4.5|==2.4.5|>=2.4.5.0-patch1,<2.4.5.0-patch8|==2.4.6|>=2.4.6.0-patch1,<2.4.6.0-patch6|==2.4.7",
"magento/community-edition": "<2.4.5|==2.4.5|>=2.4.5.0-patch1,<2.4.5.0-patch9|==2.4.6|>=2.4.6.0-patch1,<2.4.6.0-patch7|==2.4.7|>=2.4.7.0-patch1,<2.4.7.0-patch2",
"magento/core": "<=1.9.4.5",
"magento/magento1ce": "<1.9.4.3-dev",
"magento/magento1ee": ">=1,<1.14.4.3-dev",
@ -2066,7 +2067,8 @@
"mantisbt/mantisbt": "<2.26.2",
"marcwillmann/turn": "<0.3.3",
"matyhtf/framework": "<3.0.6",
"mautic/core": "<4.4.12|>=5.0.0.0-alpha,<5.0.4",
"mautic/core": "<4.4.13|>=5.0.0.0-alpha,<5.1.1",
"mautic/core-lib": ">=1.0.0.0-beta,<4.4.13|>=5.0.0.0-alpha,<5.1.1",
"mdanter/ecc": "<2",
"mediawiki/core": "<1.36.2",
"mediawiki/matomo": "<2.4.3",
@ -2176,7 +2178,7 @@
"phpmyfaq/phpmyfaq": "<3.2.5|==3.2.5",
"phpoffice/common": "<0.2.9",
"phpoffice/phpexcel": "<1.8",
"phpoffice/phpspreadsheet": "<1.29.1|>=2,<2.2.1",
"phpoffice/phpspreadsheet": "<1.29.1|>=2,<2.1.1|>=2.2,<2.2.1",
"phpseclib/phpseclib": "<2.0.47|>=3,<3.0.36",
"phpservermon/phpservermon": "<3.6",
"phpsysinfo/phpsysinfo": "<3.4.3",
@ -2219,7 +2221,7 @@
"pubnub/pubnub": "<6.1",
"pusher/pusher-php-server": "<2.2.1",
"pwweb/laravel-core": "<=0.3.6.0-beta",
"pxlrbt/filament-excel": "<2.3.3",
"pxlrbt/filament-excel": "<1.1.14|>=2.0.0.0-alpha,<2.3.3",
"pyrocms/pyrocms": "<=3.9.1",
"qcubed/qcubed": "<=3.1.1",
"quickapps/cms": "<=2.0.0.0-beta2",
@ -2431,6 +2433,7 @@
"winter/wn-dusk-plugin": "<2.1",
"winter/wn-system-module": "<1.2.4",
"wintercms/winter": "<=1.2.3",
"wireui/wireui": "<1.19.3|>=2,<2.1.3",
"woocommerce/woocommerce": "<6.6|>=8.8,<8.8.5|>=8.9,<8.9.3",
"wp-cli/wp-cli": ">=0.12,<2.5",
"wp-graphql/wp-graphql": "<=1.14.5",
@ -2533,7 +2536,7 @@
"type": "tidelift"
}
],
"time": "2024-09-10T18:06:22+00:00"
"time": "2024-09-18T23:05:04+00:00"
}
],
"aliases": [],

View file

@ -22,7 +22,7 @@ class UserDeleted extends QueuedJob {
protected IdentifyMethodMapper $identifyMethodMapper,
protected UserElementMapper $userElementMapper,
protected ITimeFactory $time,
protected LoggerInterface $logger
protected LoggerInterface $logger,
) {
parent::__construct($time);
}

View file

@ -15,7 +15,7 @@ use Psr\Log\LoggerInterface;
class Base extends CommandBase {
public function __construct(
public InstallService $installService,
protected LoggerInterface $logger
protected LoggerInterface $logger,
) {
parent::__construct();
}

View file

@ -22,7 +22,7 @@ class Reset extends Base {
public function __construct(
private IConfig $config,
private IDBConnection $db,
private LoggerInterface $logger
private LoggerInterface $logger,
) {
parent::__construct();
}

View file

@ -63,7 +63,7 @@ class AccountController extends AEnvironmentAwareController implements ISignatur
protected IUserSession $userSession,
protected SessionService $sessionService,
private IPreview $preview,
private ValidateHelper $validateHelper
private ValidateHelper $validateHelper,
) {
parent::__construct(Application::APP_ID, $request);
}
@ -149,7 +149,7 @@ class AccountController extends AEnvironmentAwareController implements ISignatur
#[NoCSRFRequired]
#[ApiRoute(verb: 'POST', url: '/api/{apiVersion}/account/signature', requirements: ['apiVersion' => '(v1)'])]
public function signatureGenerate(
string $signPassword
string $signPassword,
): DataResponse {
try {
$identify = $this->userSession->getUser()->getEMailAddress();

View file

@ -65,7 +65,7 @@ class AdminController extends AEnvironmentAwareController {
public function generateCertificateCfssl(
array $rootCert,
string $cfsslUri = '',
string $configPath = ''
string $configPath = '',
): DataResponse {
try {
$engineHandler = $this->generateCertificate($rootCert, [
@ -100,7 +100,7 @@ class AdminController extends AEnvironmentAwareController {
#[ApiRoute(verb: 'POST', url: '/api/{apiVersion}/admin/certificate/openssl', requirements: ['apiVersion' => '(v1)'])]
public function generateCertificateOpenSsl(
array $rootCert,
string $configPath = ''
string $configPath = '',
): DataResponse {
try {
$engineHandler = $this->generateCertificate($rootCert, [

View file

@ -64,7 +64,7 @@ class FileController extends AEnvironmentAwareController {
private IPreview $preview,
private IMimeIconProvider $mimeIconProvider,
private FileService $fileService,
private ValidateHelper $validateHelper
private ValidateHelper $validateHelper,
) {
parent::__construct(Application::APP_ID, $request);
}
@ -248,7 +248,7 @@ class FileController extends AEnvironmentAwareController {
bool $a = false,
bool $forceIcon = true,
string $mode = 'fill',
bool $mimeFallback = false
bool $mimeFallback = false,
) {
if ($nodeId === -1 || $x === 0 || $y === 0) {
return new DataResponse([], Http::STATUS_BAD_REQUEST);

View file

@ -30,7 +30,7 @@ class FileElementController extends AEnvironmentAwareController {
private FileElementService $fileElementService,
private IUserSession $userSession,
private ValidateHelper $validateHelper,
private LoggerInterface $logger
private LoggerInterface $logger,
) {
parent::__construct(Application::APP_ID, $request);
}

View file

@ -61,7 +61,7 @@ class PageController extends AEnvironmentPageAwareController {
private FileService $fileService,
private ValidateHelper $validateHelper,
private IEventDispatcher $eventDispatcher,
private IURLGenerator $url
private IURLGenerator $url,
) {
parent::__construct(
request: $request,

View file

@ -38,7 +38,7 @@ class RequestSignatureController extends AEnvironmentAwareController {
protected IUserSession $userSession,
protected FileService $fileService,
protected ValidateHelper $validateHelper,
protected RequestSignatureService $requestSignatureService
protected RequestSignatureService $requestSignatureService,
) {
parent::__construct(Application::APP_ID, $request);
}

View file

@ -21,7 +21,7 @@ use OCP\IRequest;
class SettingController extends AEnvironmentAwareController {
public function __construct(
IRequest $request,
private CertificateEngineHandler $certificateEngineHandler
private CertificateEngineHandler $certificateEngineHandler,
) {
parent::__construct(Application::APP_ID, $request);
}

View file

@ -44,7 +44,7 @@ class SignFileController extends AEnvironmentAwareController implements ISignatu
protected SignFileService $signFileService,
private IdentifyMethodService $identifyMethodService,
private FileService $fileService,
protected LoggerInterface $logger
protected LoggerInterface $logger,
) {
parent::__construct(Application::APP_ID, $request);
}

View file

@ -46,7 +46,7 @@ class SignatureElementsController extends AEnvironmentAwareController implements
protected SessionService $sessionService,
protected SignFileService $signFileService,
private IPreview $preview,
private ValidateHelper $validateHelper
private ValidateHelper $validateHelper,
) {
parent::__construct(Application::APP_ID, $request);
}

View file

@ -28,7 +28,7 @@ class AccountFileMapper extends QBMapper {
private IURLGenerator $urlGenerator,
private FileMapper $fileMapper,
private SignRequestMapper $signRequestMapper,
private FileTypeMapper $fileTypeMapper
private FileTypeMapper $fileTypeMapper,
) {
parent::__construct($db, 'libresign_account_file');
}

View file

@ -27,7 +27,7 @@ class FileMapper extends QBMapper {
public function __construct(
IDBConnection $db,
private IL10N $l
private IL10N $l,
) {
parent::__construct($db, 'libresign_file');
}

View file

@ -23,7 +23,7 @@ class FileTypeMapper extends QBMapper {
public function __construct(
IDBConnection $db,
private IL10N $l
private IL10N $l,
) {
parent::__construct($db, 'libresign_file_type');
}

View file

@ -16,7 +16,7 @@ abstract class ASignedEvent extends Event {
public function __construct(
public SignFileService $fileService,
public File $signedFile,
public bool $allSigned
public bool $allSigned,
) {
parent::__construct();
}

View file

@ -72,7 +72,7 @@ class AEngineHandler {
protected function exportToPkcs12(
OpenSSLCertificate|string $certificate,
OpenSSLAsymmetricKey|OpenSSLCertificate|string $privateKey
OpenSSLAsymmetricKey|OpenSSLCertificate|string $privateKey,
): string {
if (empty($certificate) || empty($privateKey)) {
throw new EmptyCertificateException();

View file

@ -51,7 +51,7 @@ class CfsslHandler extends AEngineHandler implements IEngineHandler {
public function generateRootCert(
string $commonName,
array $names = []
array $names = [],
): string {
$key = bin2hex(random_bytes(16));
@ -237,7 +237,7 @@ class CfsslHandler extends AEngineHandler implements IEngineHandler {
}
$cmd = 'nohup ' . $binary . ' serve -address=127.0.0.1 ' .
'-ca-key ' . $configPath . DIRECTORY_SEPARATOR . 'ca-key.pem ' .
'-ca ' . $configPath . DIRECTORY_SEPARATOR . 'ca.pem '.
'-ca ' . $configPath . DIRECTORY_SEPARATOR . 'ca.pem ' .
'-config ' . $configPath . DIRECTORY_SEPARATOR . 'config_server.json > /dev/null 2>&1 & echo $!';
shell_exec($cmd);
$loops = 0;

View file

@ -18,7 +18,7 @@ class CfsslServerHandler {
string $commonName,
array $names,
string $key,
string $configPath
string $configPath,
): void {
$this->putCsrServer(
$commonName,
@ -31,7 +31,7 @@ class CfsslServerHandler {
private function putCsrServer(
string $commonName,
array $names,
string $configPath
string $configPath,
): void {
$filename = $configPath . DIRECTORY_SEPARATOR . self::CSR_FILE;
$content = [

View file

@ -126,7 +126,7 @@ class FooterHandler {
$this->templateVars['validationSite'] = $this->appConfig->getAppValue('validation_site');
if ($this->templateVars['validationSite']) {
$this->templateVars['validationSite'] = rtrim($this->templateVars['validationSite'], '/').'/'.$this->fileEntity->getUuid();
$this->templateVars['validationSite'] = rtrim($this->templateVars['validationSite'], '/') . '/' . $this->fileEntity->getUuid();
} else {
$this->templateVars['validationSite'] = $this->urlGenerator->linkToRouteAbsolute('libresign.page.validationFileWithShortUrl', [
'uuid' => $this->fileEntity->getUuid(),

View file

@ -14,6 +14,6 @@ interface ISignHandler {
public function sign(
File $inputFile,
File $certificate,
string $password
string $password,
): string;
}

View file

@ -19,6 +19,6 @@ interface SignEngineInterface {
public function sign(
File $inputFile,
File $certificate,
string $password
string $password,
): string;
}

View file

@ -25,7 +25,7 @@ class BeforeNodeDeletedListener implements IEventListener {
public function __construct(
private FileMapper $fileMapper,
private RequestSignatureService $requestSignatureService,
private IDBConnection $db
private IDBConnection $db,
) {
}

View file

@ -20,7 +20,7 @@ class Version8000Date20230410230327 extends SimpleMigrationStep {
public function __construct(
protected IAppConfig $appConfig,
protected IAppDataFactory $appDataFactory
protected IAppDataFactory $appDataFactory,
) {
$this->appData = $appDataFactory->get('libresign');
}

View file

@ -21,7 +21,7 @@ use OCP\Migration\SimpleMigrationStep;
*/
class Version8000Date20230420125331 extends SimpleMigrationStep {
public function __construct(
private IDBConnection $connection
private IDBConnection $connection,
) {
}
/**

View file

@ -25,7 +25,7 @@ class Notifier implements INotifier {
private IURLGenerator $url,
private Definitions $definitions,
private FileMapper $fileMapper,
private SignRequestMapper $signRequestMapper
private SignRequestMapper $signRequestMapper,
) {
}
@ -76,7 +76,7 @@ class Notifier implements INotifier {
private function parseSignRequest(
INotification $notification,
IL10N $l,
bool $update
bool $update,
): INotification {
$parameters = $notification->getSubjectParameters();
$notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath(Application::APP_ID, 'app-dark.svg')));

View file

@ -84,7 +84,7 @@ class FileService {
private IURLGenerator $urlGenerator,
protected IMimeTypeDetector $mimeTypeDetector,
protected LoggerInterface $logger,
protected IL10N $l10n
protected IL10N $l10n,
) {
}

View file

@ -47,7 +47,7 @@ class IdentifyMethodService {
private IdentifyMethodMapper $identifyMethodMapper,
private IL10N $l10n,
private Account $account,
private Email $email
private Email $email,
) {
}

View file

@ -398,7 +398,7 @@ class InstallService {
*/
if ($this->architecture === 'x86_64') {
$compressedFileName = 'OpenJDK21U-jre_x64_' . $linuxDistribution . '_hotspot_' . self::JAVA_PARTIAL_VERSION . '.tar.gz';
$url = 'https://github.com/adoptium/temurin21-binaries/releases/download/jdk-' . self::JAVA_URL_PATH_NAME . '/' . $compressedFileName;
$url = 'https://github.com/adoptium/temurin21-binaries/releases/download/jdk-' . self::JAVA_URL_PATH_NAME . '/' . $compressedFileName;
} elseif ($this->architecture === 'aarch64') {
$compressedFileName = 'OpenJDK21U-jre_aarch64_' . $linuxDistribution . '_hotspot_' . self::JAVA_PARTIAL_VERSION . '.tar.gz';
$url = 'https://github.com/adoptium/temurin21-binaries/releases/download/jdk-' . self::JAVA_URL_PATH_NAME . '/' . $compressedFileName;
@ -412,7 +412,7 @@ class InstallService {
}
$comporessedInternalFileName = $this->getDataDir() . '/' . $this->getInternalPathOfFile($compressedFile);
$dependencyName = 'java ' . $this->architecture . ' '. $linuxDistribution;
$dependencyName = 'java ' . $this->architecture . ' ' . $linuxDistribution;
$this->download($url, $dependencyName, $comporessedInternalFileName, $hash, 'sha256');
$extractor = new TAR($comporessedInternalFileName);

View file

@ -454,7 +454,7 @@ class SignSetupService {
return file_get_contents($localCert);
}
}
return $this->fileAccessHelper->file_get_contents($this->environmentHelper->getServerRoot().'/resources/codesigning/root.crt');
return $this->fileAccessHelper->file_get_contents($this->environmentHelper->getServerRoot() . '/resources/codesigning/root.crt');
}
public function getDevelopCert(): array {

View file

@ -71,8 +71,8 @@ class PdfParserService {
'h' => $details['MediaBox'][3]
];
if (!is_numeric($widthAndHeight['w']) || !is_numeric($widthAndHeight['h'])) {
$this->logger->error('Impossible get metadata from this file: ' . $filename. '. Error to get page width and height.');
throw new LibresignException('Impossible get metadata from this file: ' . $filename. '. Error to get page width and height. If possible, open an issue at github.com/libresign/libresign with the file that you used.');
$this->logger->error('Impossible get metadata from this file: ' . $filename . '. Error to get page width and height.');
throw new LibresignException('Impossible get metadata from this file: ' . $filename . '. Error to get page width and height. If possible, open an issue at github.com/libresign/libresign with the file that you used.');
}
$output['d'][] = $widthAndHeight;
}

View file

@ -43,7 +43,7 @@ class RequestSignatureService {
protected IMimeTypeDetector $mimeTypeDetector,
protected ValidateHelper $validateHelper,
protected IClientService $client,
protected LoggerInterface $logger
protected LoggerInterface $logger,
) {
}

View file

@ -446,7 +446,7 @@ class SignFileService {
SignRequestEntity $signRequest,
string $identifyMethodName,
string $signMethodName,
string $identify = ''
string $identify = '',
): void {
$identifyMethods = $this->identifyMethodService->getIdentifyMethodsFromSignRequestId($signRequest->getId());
if (empty($identifyMethods[$identifyMethodName])) {

View file

@ -16,7 +16,7 @@ use OCP\Settings\IIconSection;
class AdminSettings implements IIconSection {
public function __construct(
private IL10N $l,
private IURLGenerator $urlGenerator
private IURLGenerator $urlGenerator,
) {
}

View file

@ -10,7 +10,7 @@ namespace OCA\Libresign\Tests\Api;
use bovigo\vfs\vfsStream;
use ByJG\ApiTools\AbstractRequester;
use ByJG\Util\Psr7\Response;
use ByJG\WebRequest\Psr7\Response;
use GuzzleHttp\Psr7\Stream;
use OC\AppFramework\Http\Request;
use OCP\IRequest;
@ -23,7 +23,7 @@ use Symfony\Component\Routing\RequestContext;
* Request handler based on ByJG HttpClient (WebRequest)
*/
class ApiRequester extends AbstractRequester {
protected function handleRequest(RequestInterface $request):Response|ResponseInterface {
protected function handleRequest(RequestInterface $request):ResponseInterface {
$this->setupRequest($request);
$body = $this->doRequest();

View file

@ -30,7 +30,7 @@ class ApiTestCase extends TestCase {
*/
protected $schema;
protected AbstractRequester|null $requester = null;
protected ?AbstractRequester $requester = null;
/**
* @var \OCA\Libresign\Tests\Api\ApiRequester
@ -73,7 +73,7 @@ class ApiTestCase extends TestCase {
*
* When set, all requests without an own schema use this one instead.
*/
public function setSchema(Schema|null $schema):void {
public function setSchema(?Schema $schema):void {
$this->schema = $schema;
}
@ -84,7 +84,7 @@ class ApiTestCase extends TestCase {
/**
* @return AbstractRequester
*/
protected function getRequester():AbstractRequester|null {
protected function getRequester():?AbstractRequester {
if (is_null($this->requester)) {
$this->requester = new ApiRequester();
}

View file

@ -10,8 +10,8 @@ if (!defined('PHPUNIT_RUN')) {
define('PHPUNIT_RUN', 1);
}
require_once __DIR__.'/../../../lib/base.php';
require_once __DIR__.'/../vendor/autoload.php';
require_once __DIR__ . '/../../../lib/base.php';
require_once __DIR__ . '/../vendor/autoload.php';
\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true);

View file

@ -215,7 +215,7 @@ class FeatureContext extends NextcloudApiContext implements OpenedEmailStorageAw
/**
* @When user :user has the following notifications
*/
public function userNotifications(string $user, TableNode|null $body = null): void {
public function userNotifications(string $user, ?TableNode $body = null): void {
$this->setCurrentUser($user);
$this->sendOCSRequest(
'GET', '/apps/notifications/api/v2/notifications'

View file

@ -29,7 +29,7 @@ class AppConfigOverwrite extends AppConfig {
string $app,
string $key,
string $default = '',
?bool $lazy = false
?bool $lazy = false,
): string {
if (isset($this->overWrite[$app]) && isset($this->overWrite[$app][$key])) {
return $this->overWrite[$app][$key];
@ -43,7 +43,7 @@ class AppConfigOverwrite extends AppConfig {
string $key,
string $value,
bool $lazy = false,
bool $sensitive = false
bool $sensitive = false,
): bool {
$this->overWrite[$app][$key] = $value;
return true;

View file

@ -8,20 +8,67 @@
"packages": [],
"packages-dev": [
{
"name": "nextcloud/coding-standard",
"version": "v1.2.3",
"name": "kubawerlos/php-cs-fixer-custom-fixers",
"version": "v3.22.0",
"source": {
"type": "git",
"url": "https://github.com/nextcloud/coding-standard.git",
"reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da"
"url": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers.git",
"reference": "8701394f0c7cd450ac4fa577d24589122c1d5d5e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/bc9c53a5306114b60c4363057aff9c2ed10a54da",
"reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da",
"url": "https://api.github.com/repos/kubawerlos/php-cs-fixer-custom-fixers/zipball/8701394f0c7cd450ac4fa577d24589122c1d5d5e",
"reference": "8701394f0c7cd450ac4fa577d24589122c1d5d5e",
"shasum": ""
},
"require": {
"ext-filter": "*",
"ext-tokenizer": "*",
"friendsofphp/php-cs-fixer": "^3.61.1",
"php": "^7.4 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.6.4 || ^10.5.29"
},
"type": "library",
"autoload": {
"psr-4": {
"PhpCsFixerCustomFixers\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Kuba Werłos",
"email": "werlos@gmail.com"
}
],
"description": "A set of custom fixers for PHP CS Fixer",
"support": {
"issues": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers/issues",
"source": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers/tree/v3.22.0"
},
"time": "2024-08-16T20:44:35+00:00"
},
{
"name": "nextcloud/coding-standard",
"version": "v1.3.1",
"source": {
"type": "git",
"url": "https://github.com/nextcloud/coding-standard.git",
"reference": "e88acb0df6217b808d1632286ddfec9267a102e4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/e88acb0df6217b808d1632286ddfec9267a102e4",
"reference": "e88acb0df6217b808d1632286ddfec9267a102e4",
"shasum": ""
},
"require": {
"kubawerlos/php-cs-fixer-custom-fixers": "^3.22",
"php": "^7.3|^8.0",
"php-cs-fixer/shim": "^3.17"
},
@ -44,9 +91,9 @@
"description": "Nextcloud coding standards for the php cs fixer",
"support": {
"issues": "https://github.com/nextcloud/coding-standard/issues",
"source": "https://github.com/nextcloud/coding-standard/tree/v1.2.3"
"source": "https://github.com/nextcloud/coding-standard/tree/v1.3.1"
},
"time": "2024-08-23T14:32:32+00:00"
"time": "2024-09-19T09:07:10+00:00"
},
{
"name": "php-cs-fixer/shim",

View file

@ -126,16 +126,16 @@
},
{
"name": "nikic/php-parser",
"version": "v5.1.0",
"version": "v5.2.0",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1"
"reference": "23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1",
"reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb",
"reference": "23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb",
"shasum": ""
},
"require": {
@ -178,9 +178,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0"
"source": "https://github.com/nikic/PHP-Parser/tree/v5.2.0"
},
"time": "2024-07-01T20:03:41+00:00"
"time": "2024-09-15T16:40:33+00:00"
},
{
"name": "phpstan/phpdoc-parser",

View file

@ -13,22 +13,23 @@
"source": {
"type": "git",
"url": "https://github.com/byjg/php-swagger-test.git",
"reference": "91c268624566924776288fbd4725d62720cbafd3"
"reference": "30190f22f21e9d178f127361629edfae73ab9b8c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/byjg/php-swagger-test/zipball/91c268624566924776288fbd4725d62720cbafd3",
"reference": "91c268624566924776288fbd4725d62720cbafd3",
"url": "https://api.github.com/repos/byjg/php-swagger-test/zipball/30190f22f21e9d178f127361629edfae73ab9b8c",
"reference": "30190f22f21e9d178f127361629edfae73ab9b8c",
"shasum": ""
},
"require": {
"byjg/webrequest": "dev-5.0.0rc",
"byjg/webrequest": "^5.0",
"ext-json": "*",
"php": ">=8.1"
},
"require-dev": {
"byjg/restserver": "^5.0",
"phpunit/phpunit": "^9.6"
"phpunit/phpunit": "^9.6",
"vimeo/psalm": "^5.9"
},
"type": "library",
"autoload": {
@ -45,7 +46,13 @@
"issues": "https://github.com/byjg/php-swagger-test/issues",
"source": "https://github.com/byjg/php-swagger-test/tree/5.0"
},
"time": "2024-01-07T20:16:47+00:00"
"funding": [
{
"url": "https://github.com/byjg",
"type": "github"
}
],
"time": "2024-09-16T15:24:20+00:00"
},
{
"name": "byjg/uri",
@ -97,34 +104,39 @@
},
{
"name": "byjg/webrequest",
"version": "dev-5.0.0rc",
"version": "5.0.x-dev",
"source": {
"type": "git",
"url": "https://github.com/byjg/php-webrequest.git",
"reference": "f0940943d276c05e25772c9a1b1886db15868328"
"reference": "4b65cc127da2b921322eba0256fa5e5ccbc51bda"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/byjg/php-webrequest/zipball/f0940943d276c05e25772c9a1b1886db15868328",
"reference": "f0940943d276c05e25772c9a1b1886db15868328",
"url": "https://api.github.com/repos/byjg/php-webrequest/zipball/4b65cc127da2b921322eba0256fa5e5ccbc51bda",
"reference": "4b65cc127da2b921322eba0256fa5e5ccbc51bda",
"shasum": ""
},
"require": {
"byjg/uri": "5.0.x-dev",
"byjg/uri": "^5.0",
"ext-curl": "*",
"ext-json": "*",
"php": ">=8.1",
"psr/http-client": "^1.0",
"psr/http-message": "^2.0"
"psr/http-message": "^1.0|^2.0"
},
"provide": {
"psr/http-client-implementation": "1.0",
"psr/http-message-implementation": "1.0"
},
"require-dev": {
"ext-soap": "*",
"phpunit/phpunit": "^9.6"
"phpunit/phpunit": "^9.6",
"vimeo/psalm": "^5.9"
},
"type": "library",
"autoload": {
"psr-4": {
"ByJG\\Util\\": "src/"
"ByJG\\WebRequest\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@ -140,9 +152,9 @@
"description": "A lightweight and highly customized CURL wrapper for making RESt calls using PSR7 implementation and a wrapper for call dynamically SOAP requests.",
"support": {
"issues": "https://github.com/byjg/php-webrequest/issues",
"source": "https://github.com/byjg/php-webrequest/tree/5.0.0rc"
"source": "https://github.com/byjg/php-webrequest/tree/5.0"
},
"time": "2024-01-07T23:30:39+00:00"
"time": "2024-09-16T14:43:58+00:00"
},
{
"name": "donatj/mock-webserver",
@ -452,16 +464,16 @@
},
{
"name": "nikic/php-parser",
"version": "v5.1.0",
"version": "v5.2.0",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1"
"reference": "23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1",
"reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb",
"reference": "23c79fbbfb725fb92af9bcf41065c8e9a0d49ddb",
"shasum": ""
},
"require": {
@ -504,9 +516,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0"
"source": "https://github.com/nikic/PHP-Parser/tree/v5.2.0"
},
"time": "2024-07-01T20:03:41+00:00"
"time": "2024-09-15T16:40:33+00:00"
},
{
"name": "phar-io/manifest",
@ -956,12 +968,12 @@
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "3c69d315bdf79080c8e115b69d1961c6905b0e18"
"reference": "7ac8b4e63f456046dcb4c9787da9382831a1874b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3c69d315bdf79080c8e115b69d1961c6905b0e18",
"reference": "3c69d315bdf79080c8e115b69d1961c6905b0e18",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7ac8b4e63f456046dcb4c9787da9382831a1874b",
"reference": "7ac8b4e63f456046dcb4c9787da9382831a1874b",
"shasum": ""
},
"require": {
@ -1033,7 +1045,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.34"
"source": "https://github.com/sebastianbergmann/phpunit/tree/10.5"
},
"funding": [
{
@ -1049,7 +1061,7 @@
"type": "tidelift"
}
],
"time": "2024-09-13T05:19:38+00:00"
"time": "2024-09-19T10:52:21+00:00"
},
{
"name": "psr/http-client",
@ -2467,12 +2479,12 @@
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
"reference": "62f96e1cfd4cf518882a36bfedcf1fe4093c1299"
"reference": "7025b964f123bbf1896d7563db6ec7f1f63e918a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/62f96e1cfd4cf518882a36bfedcf1fe4093c1299",
"reference": "62f96e1cfd4cf518882a36bfedcf1fe4093c1299",
"url": "https://api.github.com/repos/symfony/yaml/zipball/7025b964f123bbf1896d7563db6ec7f1f63e918a",
"reference": "7025b964f123bbf1896d7563db6ec7f1f63e918a",
"shasum": ""
},
"require": {
@ -2534,7 +2546,7 @@
"type": "tidelift"
}
],
"time": "2024-08-11T17:40:32+00:00"
"time": "2024-09-16T14:36:56+00:00"
},
{
"name": "theseer/tokenizer",

View file

@ -692,16 +692,16 @@
},
{
"name": "nikic/php-parser",
"version": "v4.19.1",
"version": "v4.19.2",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "4e1b88d21c69391150ace211e9eaf05810858d0b"
"reference": "0ed4c8949a32986043e977dbe14776c14d644c45"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4e1b88d21c69391150ace211e9eaf05810858d0b",
"reference": "4e1b88d21c69391150ace211e9eaf05810858d0b",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/0ed4c8949a32986043e977dbe14776c14d644c45",
"reference": "0ed4c8949a32986043e977dbe14776c14d644c45",
"shasum": ""
},
"require": {
@ -742,9 +742,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v4.19.1"
"source": "https://github.com/nikic/PHP-Parser/tree/v4.19.2"
},
"time": "2024-03-17T08:10:35+00:00"
"time": "2024-09-17T19:36:00+00:00"
},
{
"name": "phpdocumentor/reflection-common",