Revert "fix(regression): caught errors"

This reverts commit c94c140484.
This commit is contained in:
Sami Mazouz 2023-05-31 09:47:30 +01:00
parent c94c140484
commit 04fe2616a4
No known key found for this signature in database
26 changed files with 30 additions and 68385 deletions

View File

@ -19,8 +19,8 @@
}
],
"require": {
"flarum/core": "^2.0",
"flarum/approval": "^2.0"
"flarum/core": "^1.8",
"flarum/approval": "^1.7"
},
"autoload": {
"psr-4": {

View File

@ -19,8 +19,8 @@
}
],
"require": {
"flarum/core": "^2.0",
"flarum/flags": "^2.0"
"flarum/core": "^1.8",
"flarum/flags": "^1.7"
},
"autoload": {
"psr-4": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"extra": {
"branch-alias": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

View File

@ -7,7 +7,7 @@
],
"license": "MIT",
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"extra": {
"branch-alias": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"extra": {
"branch-alias": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

View File

@ -16,6 +16,6 @@ class NicknameDriver implements DriverInterface
{
public function displayName(User $user): string
{
return $user->nickname ?: $user->username;
return $user->nickname ?? $user->username;
}
}

View File

@ -22,7 +22,7 @@
"source": "https://github.com/flarum/package-manager"
},
"require": {
"flarum/core": "^2.0",
"flarum/core": "^1.8",
"composer/composer": "^2.3"
},
"require-dev": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0",
"flarum/core": "^1.8",
"pusher/pusher-php-server": "^2.2"
},
"require-dev": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^2.0"
"flarum/core": "^1.8"
},
"autoload": {
"psr-4": {

30694
framework/core/js/dist/admin.js generated vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

37669
framework/core/js/dist/forum.js generated vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -88,7 +88,7 @@ class Discussion extends AbstractModel
/**
* The user for which the state relationship should be loaded.
*/
protected static ?User $stateUser = null;
protected static ?User $stateUser;
public static function boot()
{

View File

@ -50,7 +50,7 @@ class GambitManager
protected function applyGambits(SearchState $search, string $query): string
{
$bits = array_filter($this->explode($query));
$bits = $this->explode($query);
if (! $bits) {
return '';