Skip to content

Commit 7a55ea7

Browse files
Merge pull request #41061 from nextcloud/bugfix/noid/dont-use-indirect-dependency
fix(3rdparty): Don't use indirect dependency "Safe/" for functions
2 parents 122e799 + 3a265ce commit 7a55ea7

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
namespace OCA\DAV\Tests\integration\UserMigration;
2828

29-
use function Safe\scandir;
29+
use function scandir;
3030
use OCA\DAV\AppInfo\Application;
3131
use OCA\DAV\UserMigration\CalendarMigrator;
3232
use OCP\AppFramework\App;

apps/dav/tests/integration/UserMigration/ContactsMigratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
namespace OCA\DAV\Tests\integration\UserMigration;
2828

29-
use function Safe\scandir;
29+
use function scandir;
3030
use OCA\DAV\AppInfo\Application;
3131
use OCA\DAV\UserMigration\ContactsMigrator;
3232
use OCP\AppFramework\App;

apps/dav/tests/unit/CalDAV/AppCalendar/AppCalendarTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
use PHPUnit\Framework\MockObject\MockObject;
2626
use Test\TestCase;
2727

28-
use function Safe\rewind;
28+
use function rewind;
2929

3030
class AppCalendarTest extends TestCase {
3131
private $principal = 'principals/users/foo';
@@ -35,7 +35,7 @@ class AppCalendarTest extends TestCase {
3535

3636
private ICalendar|MockObject $calendar;
3737
private ICalendar|MockObject $writeableCalendar;
38-
38+
3939
protected function setUp(): void {
4040
parent::setUp();
4141

@@ -115,7 +115,7 @@ public function testGetACL():void {
115115
'principal' => $this->principal,
116116
'protected' => true,
117117
];
118-
118+
119119
// Check that the correct ACL is returned (default be only readable)
120120
$this->assertEquals($expectedRO, $this->appCalendar->getACL());
121121
$this->assertEquals($expectedRW, $this->writeableAppCalendar->getACL());

core/Db/ProfileConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
namespace OC\Core\Db;
2828

29-
use function Safe\json_decode;
30-
use function Safe\json_encode;
29+
use function json_decode;
30+
use function json_encode;
3131
use \JsonSerializable;
3232
use OCP\AppFramework\Db\Entity;
3333
use OCP\Profile\ParameterDoesNotExistException;

lib/private/Profile/Actions/FediverseAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
namespace OC\Profile\Actions;
2828

29-
use function Safe\substr;
29+
use function substr;
3030
use OCP\Accounts\IAccountManager;
3131
use OCP\IURLGenerator;
3232
use OCP\IUser;

lib/private/Profile/Actions/TwitterAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
namespace OC\Profile\Actions;
2828

29-
use function Safe\substr;
29+
use function substr;
3030
use OCP\Accounts\IAccountManager;
3131
use OCP\IURLGenerator;
3232
use OCP\IUser;

0 commit comments

Comments
 (0)