fix(regression): caught errors

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Sami Mazouz 2023-05-31 09:50:39 +01:00
parent 04fe2616a4
commit 082f04d3c3
No known key found for this signature in database
26 changed files with 47 additions and 47 deletions

View File

@ -174,7 +174,7 @@
"extensions/tags"
],
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"phpstan": {
"includes": [

View File

@ -19,8 +19,8 @@
}
],
"require": {
"flarum/core": "^1.8",
"flarum/approval": "^1.7"
"flarum/core": "^2.0",
"flarum/approval": "^2.0"
},
"autoload": {
"psr-4": {
@ -29,7 +29,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Akismet",

View File

@ -19,8 +19,8 @@
}
],
"require": {
"flarum/core": "^1.8",
"flarum/flags": "^1.7"
"flarum/core": "^2.0",
"flarum/flags": "^2.0"
},
"autoload": {
"psr-4": {
@ -29,7 +29,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Approval",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "BBCode",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Embed",

View File

@ -19,11 +19,11 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Emoji",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Flags",

View File

@ -7,11 +7,11 @@
],
"license": "MIT",
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "English",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Likes",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Lock",

View File

@ -19,11 +19,11 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Markdown",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Mentions",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Nicknames",
@ -68,7 +68,7 @@
},
"require-dev": {
"flarum/testing": "^1.0.0",
"flarum/core": "1.x-dev"
"flarum/core": "2.x-dev"
},
"scripts-descriptions": {
"test": "Runs all tests.",

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": "^1.8",
"flarum/core": "^2.0",
"composer/composer": "^2.3"
},
"require-dev": {

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8",
"flarum/core": "^2.0",
"pusher/pusher-php-server": "^2.2"
},
"require-dev": {
@ -32,7 +32,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Pusher",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Statistics",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Sticky",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Subscriptions",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Suspend",

View File

@ -19,7 +19,7 @@
}
],
"require": {
"flarum/core": "^1.8"
"flarum/core": "^2.0"
},
"autoload": {
"psr-4": {
@ -33,7 +33,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-extension": {
"title": "Tags",

View File

@ -109,7 +109,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
},
"flarum-cli": {
"excludeScaffolding": [

View File

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

View File

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

View File

@ -19,7 +19,7 @@
]
},
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
}
},
"repositories": [{

View File

@ -27,7 +27,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "1.x-dev"
"dev-main": "2.x-dev"
}
},
"repositories": [{