mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 11:16:39 +08:00
fix(regression): caught errors
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
parent
04fe2616a4
commit
082f04d3c3
|
@ -174,7 +174,7 @@
|
|||
"extensions/tags"
|
||||
],
|
||||
"branch-alias": {
|
||||
"dev-main": "1.x-dev"
|
||||
"dev-main": "2.x-dev"
|
||||
},
|
||||
"phpstan": {
|
||||
"includes": [
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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.",
|
||||
|
|
|
@ -16,6 +16,6 @@ class NicknameDriver implements DriverInterface
|
|||
{
|
||||
public function displayName(User $user): string
|
||||
{
|
||||
return $user->nickname ?? $user->username;
|
||||
return $user->nickname ?: $user->username;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.x-dev"
|
||||
"dev-main": "2.x-dev"
|
||||
},
|
||||
"flarum-cli": {
|
||||
"excludeScaffolding": [
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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 '';
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
]
|
||||
},
|
||||
"branch-alias": {
|
||||
"dev-main": "1.x-dev"
|
||||
"dev-main": "2.x-dev"
|
||||
}
|
||||
},
|
||||
"repositories": [{
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "1.x-dev"
|
||||
"dev-main": "2.x-dev"
|
||||
}
|
||||
},
|
||||
"repositories": [{
|
||||
|
|
Loading…
Reference in New Issue
Block a user