Skip to content

Commit

Permalink
Merge pull request #232 from koriym/name
Browse files Browse the repository at this point in the history
Validate name key
  • Loading branch information
koriym committed Jan 10, 2021
2 parents 32eb0e3 + 2baf1be commit 677c56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/di/Di/Named.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class Named
*/
public function __construct($value)
{
if (is_array($value)) {
if (is_array($value) && isset($value['value'])) {
// doctrine/annotations
$this->value = $value['value'];
}
Expand Down

0 comments on commit 677c56e

Please sign in to comment.