Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions core/js/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -2428,3 +2428,9 @@ jQuery.fn.tipsy = function(argument) {
}
return this;
};

/**
* Add to favorites not working in IE11 - polyfill needed #12007
* @link https://github.com/nextcloud/server/issues/12007
*/
if (!String.prototype.startsWith) { String.prototype.startsWith = function(searchString, position) { position = position || 0; return this.indexOf(searchString, position) === position; }; }
4 changes: 2 additions & 2 deletions tests/lib/Traits/EncryptionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ trait EncryptionTrait {
abstract protected function registerStorageWrapper($name, $wrapper);

// from phpunit
abstract protected function markTestSkipped($reason = '');
abstract protected function assertTrue($condition, $message = '');
abstract protected function markTestSkipped(string $message = '');
abstract protected function assertTrue($condition, string $message = '');

private $encryptionWasEnabled;

Expand Down
2 changes: 1 addition & 1 deletion tests/startsessionlistener.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class StartSessionListener implements TestListener {

use TestListenerDefaultImplementation;

public function endTest(Test $test, $time) {
public function endTest(Test $test, float $time) :void {
// reopen the session - only allowed for memory session
if (\OC::$server->getSession() instanceof Memory) {
/** @var $session Memory */
Expand Down