Skip to content

Commit

Permalink
fix arguments types
Browse files Browse the repository at this point in the history
  • Loading branch information
phcorp committed Nov 30, 2017
1 parent 71ed41b commit 61221aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Graphviz/Attributable.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getAttributes(): array
*
* @param AttributeInterface[] $attributes
*/
public function setAttributes($attributes): void
public function setAttributes(array $attributes): void
{
foreach ($attributes as $attribute) {
$this->attributes[$attribute->getId()] = $attribute;
Expand Down Expand Up @@ -101,7 +101,7 @@ public function getAttribute(string $id): ?AttributeInterface
*
* @return AttributeInterface
*/
public function createAttribute($id, $value): AttributeInterface
public function createAttribute(string $id, string $value): AttributeInterface
{
$attribute = new Attribute($id, $value);
$this->attributes[$id] = $attribute;
Expand Down
6 changes: 3 additions & 3 deletions src/Graphviz/Edgeable.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ public function addEdgeFrom(ElementInterface $element, string $label = null): Ed
/**
* Remove edge from.
*
* @param Vertex|Record $element
* @param null|string $label
* @param ElementInterface $element
* @param null|string $label
*
* @throws \RuntimeException
*/
public function removeEdgeFrom($element, string $label = null): void
public function removeEdgeFrom(ElementInterface $element, string $label = null): void
{
if (!$this->graph) {
throw new \RuntimeException('Graph is not defined');
Expand Down

0 comments on commit 61221aa

Please sign in to comment.