diff --git a/composer.lock b/composer.lock index 94d16544..fa149c0d 100644 --- a/composer.lock +++ b/composer.lock @@ -819,16 +819,16 @@ }, { "name": "nextcloud/coding-standard", - "version": "v1.1.1", + "version": "v1.2.1", "source": { "type": "git", "url": "https://github.com/nextcloud/coding-standard.git", - "reference": "55def702fb9a37a219511e1d8c6fe8e37164c1fb" + "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/55def702fb9a37a219511e1d8c6fe8e37164c1fb", - "reference": "55def702fb9a37a219511e1d8c6fe8e37164c1fb", + "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", + "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", "shasum": "" }, "require": { @@ -854,9 +854,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.1.1" + "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.1" }, - "time": "2023-06-01T12:05:01+00:00" + "time": "2024-02-01T14:54:37+00:00" }, { "name": "nextcloud/ocp", @@ -1072,16 +1072,16 @@ }, { "name": "php-cs-fixer/shim", - "version": "v3.22.0", + "version": "v3.49.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/shim.git", - "reference": "f6692934a6d1fe40fd8bc3339487490baa4a6700" + "reference": "f7d3219cac46632f12362c9aa7c2ac0d2fe92c52" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/f6692934a6d1fe40fd8bc3339487490baa4a6700", - "reference": "f6692934a6d1fe40fd8bc3339487490baa4a6700", + "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/f7d3219cac46632f12362c9aa7c2ac0d2fe92c52", + "reference": "f7d3219cac46632f12362c9aa7c2ac0d2fe92c52", "shasum": "" }, "require": { @@ -1118,9 +1118,9 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/PHP-CS-Fixer/shim/issues", - "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.22.0" + "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.49.0" }, - "time": "2023-07-16T23:08:49+00:00" + "time": "2024-02-02T00:42:09+00:00" }, { "name": "php-parallel-lint/php-parallel-lint", diff --git a/tests/stub.php b/tests/stub.php index 2309cbac..bb89af30 100644 --- a/tests/stub.php +++ b/tests/stub.php @@ -139,7 +139,7 @@ public function __construct( /** * @deprecated - use getValue*() */ - public function getValue(string $app, string $key, string $default = null): string { + public function getValue(string $app, string $key, ?string $default = null): string { } } } @@ -431,7 +431,7 @@ public function unlink($path) { use Symfony\Component\EventDispatcher\EventDispatcherInterface; class User implements IUser { - public function __construct(string $uid, ?UserInterface $backend, EventDispatcherInterface $dispatcher, $emitter = null, IConfig $config = null, $urlGenerator = null) { + public function __construct(string $uid, ?UserInterface $backend, EventDispatcherInterface $dispatcher, $emitter = null, ?IConfig $config = null, $urlGenerator = null) { } } } @@ -459,7 +459,7 @@ public function getFileInfo(): \OCP\Files\FileInfo { use OCP\ILogger; abstract class TimedJob implements IJob { - public function execute(IJobList $jobList, ILogger $logger = null) { + public function execute(IJobList $jobList, ?ILogger $logger = null) { } abstract protected function run($argument);