diff --git a/framework/core/src/Api/Serializer/ForumSerializer.php b/framework/core/src/Api/Serializer/ForumSerializer.php index 04a75cf6c..19d0b31be 100644 --- a/framework/core/src/Api/Serializer/ForumSerializer.php +++ b/framework/core/src/Api/Serializer/ForumSerializer.php @@ -10,7 +10,6 @@ namespace Flarum\Api\Serializer; -use Flarum\Core\Access\Gate; use Flarum\Forum\UrlGenerator; use Flarum\Foundation\Application; use Flarum\Settings\SettingsRepositoryInterface; diff --git a/framework/core/src/Asset/LessCompiler.php b/framework/core/src/Asset/LessCompiler.php index 5a94c6729..0e8be7f09 100644 --- a/framework/core/src/Asset/LessCompiler.php +++ b/framework/core/src/Asset/LessCompiler.php @@ -41,7 +41,7 @@ class LessCompiler extends RevisionCompiler if (! count($this->files) || ! count($this->strings)) { return; } - + ini_set('xdebug.max_nesting_level', 200); $parser = new Less_Parser([ diff --git a/framework/core/src/Database/AbstractModel.php b/framework/core/src/Database/AbstractModel.php index 7da4f5712..72bd4bbd2 100755 --- a/framework/core/src/Database/AbstractModel.php +++ b/framework/core/src/Database/AbstractModel.php @@ -73,13 +73,13 @@ abstract class AbstractModel extends Eloquent public function __construct(array $attributes = []) { $defaults = []; - + static::$dispatcher->fire( new ConfigureModelDefaultAttributes($this, $defaults) ); $this->attributes = $defaults; - + parent::__construct($attributes); }