1
0
mirror of https://github.com/flarum/core.git synced 2025-08-12 03:14:33 +02:00

fix(regression): caught errors

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Sami Mazouz
2023-05-31 09:45:50 +01:00
parent 7b9605bb4e
commit c94c140484
26 changed files with 68385 additions and 30 deletions

View File

@@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"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;
}
}