Skip to content

Commit 8cf9163

Browse files
committed
Set nullable properties null from start
1 parent ad3445a commit 8cf9163

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

includes/ContentImport/ContentImporter.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class ContentImporter extends MslsRegistryInstance {
2525
* @var MslsMain
2626
*/
2727
protected $main;
28-
protected ?ImportLogger $logger;
29-
protected ?Relations $relations;
28+
protected ?ImportLogger $logger = null;
29+
protected ?Relations $relations = null;
3030

3131
/**
3232
* @var bool Whether the class should handle requests or not.
@@ -290,7 +290,7 @@ public function import_content( ImportCoordinates $import_coordinates, array $po
290290
*/
291291
$importers = apply_filters( 'msls_content_import_importers', null, $import_coordinates );
292292

293-
if ( null === $importers ) {
293+
if ( is_null( $importers ) ) {
294294
$importers = Map::instance()->make( $import_coordinates );
295295
}
296296

0 commit comments

Comments
 (0)