Skip to content

Commit

Permalink
Merge pull request #58 from sjokkateer/docs/default-container
Browse files Browse the repository at this point in the history
[Fix] DEFAULT CONTAINER: Documentation & resolved phpstan-baseline error
  • Loading branch information
Ocramius authored May 18, 2022
2 parents 5c600db + 2379ba7 commit 33339ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,6 @@ parameters:
count: 1
path: src/Container/ServiceManager/AutowireFactory.php

-
message: "#^Property Laminas\\\\Di\\\\DefaultContainer\\:\\:\\$services type has no value type specified in iterable type array\\.$#"
count: 1
path: src/DefaultContainer.php

-
message: "#^Method Laminas\\\\Di\\\\Definition\\\\ClassDefinitionInterface\\:\\:getReflection\\(\\) return type with generic class ReflectionClass does not specify its types\\: T$#"
count: 1
Expand Down
4 changes: 2 additions & 2 deletions src/DefaultContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DefaultContainer implements ContainerInterface
/**
* Registered services and cached values
*
* @var array
* @var array<string, object>
*/
protected $services = [];

Expand Down Expand Up @@ -80,7 +80,7 @@ public function has($name)
* @see ContainerInterface::get()
*
* @param string $name
* @return mixed
* @return object
*/
public function get($name)
{
Expand Down

0 comments on commit 33339ae

Please sign in to comment.