Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 6
level: 8
paths:
- MultisiteLanguageSwitcher.php
- includes
Expand Down
2 changes: 1 addition & 1 deletion includes/MslsMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ final public function __construct( MslsOptions $options, MslsBlogCollection $col
$this->collection = $collection;
}

public static function create(): object {
public static function create(): MslsMain {
return new static( msls_options(), msls_blog_collection() );
}

Expand Down
3 changes: 3 additions & 0 deletions includes/MslsOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class MslsOutput extends MslsMain {

const MSLS_GET_TAGS_HOOK = 'msls_output_get_tags';

public static function create(): MslsOutput {
return new static( msls_options(), msls_blog_collection() );
}

public static function init(): object {
_deprecated_function( __METHOD__, '2.9.2', 'MslsOutput::create' );
Expand Down
Loading