Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:railt/reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
knesmeyanov committed Aug 9, 2018
2 parents 5e06d12 + ca1c7cc commit 1b72cca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Definition/Behaviour/HasInheritance.php
Expand Up @@ -70,7 +70,7 @@ public function extends($definition): ProvidesInheritance

if ($definition instanceof ProvidesInheritance) {
/** @var HasInheritance $definition */
$definition->extendedBy[] = $this->extends;
$definition->extendedBy[] = $this->getName();
}

return $this;
Expand Down
3 changes: 1 addition & 2 deletions src/Definition/Behaviour/HasTypeIndication.php
Expand Up @@ -82,8 +82,7 @@ public function __toString(): string
$parent .= '!';
}

return \sprintf('%s<%s>: %s', $this->getName(), static::getType(), $parent);

return \sprintf('%s: %s', $this->getName(), $parent);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Definition/ScalarDefinition.php
Expand Up @@ -33,7 +33,7 @@ public static function getType(): TypeInterface
*/
public function parse($value)
{
if ($parent = $this->getParentInheritance()) {
if ($parent = $this->getInheritedParent()) {
$value = $parent->parse($value);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Invocation/AbstractTypeInvocation.php
Expand Up @@ -59,6 +59,6 @@ public function getName(): string
*/
public function __toString(): string
{
return \sprintf('%s()<%s>', $this->getName(), static::getType());
return \sprintf('%s<%s>()', $this->getName(), static::getType());
}
}

0 comments on commit 1b72cca

Please sign in to comment.