Skip to content

Commit

Permalink
update to adapt latest phpleague fractal
Browse files Browse the repository at this point in the history
  • Loading branch information
fd6130 committed May 23, 2022
1 parent c989ab1 commit e8cc00d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ContainerAwareManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class ContainerAwareManager extends Manager
*
* @return ContainerAwareScope
*/
public function createData(ResourceInterface $resource, $scopeIdentifier = null,
Scope $parentScopeInstance = null)
public function createData(ResourceInterface $resource, ?string $scopeIdentifier = null,
Scope $parentScopeInstance = null): Scope
{
$scopeInstance = new ContainerAwareScope($this, $resource, $scopeIdentifier);
$scopeInstance->setContainer($this->container);
Expand Down
2 changes: 1 addition & 1 deletion src/ContainerAwareScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ContainerAwareScope extends Scope
* @param mixed $data
* @return array
*/
protected function fireTransformer($transformer, $data)
protected function fireTransformer($transformer, $data): array
{
if (is_string($transformer) && $this->container->has($transformer)) {
$transformer = $this->container->get($transformer);
Expand Down

0 comments on commit e8cc00d

Please sign in to comment.