Skip to content

Commit

Permalink
fix php8.4 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlerdominik committed Dec 9, 2024
1 parent d3ccbf7 commit 7f16489
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 7f16489

Please sign in to comment.