1
0
mirror of https://github.com/flarum/core.git synced 2025-08-09 09:57:06 +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:50:39 +01:00
parent 04fe2616a4
commit 082f04d3c3
26 changed files with 47 additions and 47 deletions

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 '';