Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Manager
*/
private ScopeFactoryInterface $scopeFactory;

public function __construct(ScopeFactoryInterface $scopeFactory = null)
public function __construct(?ScopeFactoryInterface $scopeFactory = null)
{
$this->scopeFactory = $scopeFactory ?: new ScopeFactory();
}
Expand All @@ -72,7 +72,7 @@ public function __construct(ScopeFactoryInterface $scopeFactory = null)
public function createData(
ResourceInterface $resource,
?string $scopeIdentifier = null,
Scope $parentScopeInstance = null
?Scope $parentScopeInstance = null
): Scope {
if ($parentScopeInstance !== null) {
return $this->scopeFactory->createChildScopeFor($this, $parentScopeInstance, $resource, $scopeIdentifier);
Expand Down
2 changes: 1 addition & 1 deletion test/Serializer/DataArraySerializerTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace PHPOpenSourceSaver\Fractal\Test\Resource;
<?php namespace PHPOpenSourceSaver\Fractal\Test\Serializer;

use PHPOpenSourceSaver\Fractal\Manager;
use PHPOpenSourceSaver\Fractal\Resource\Collection;
Expand Down