Skip to content

Commit 4781a98

Browse files
Merge branch '4.4'
* 4.4: Add return types to internal & magic methods when possible fixed CSC Add Address::fromString [DomCrawler] Added Crawler::matches(), ::closest(), ::outerHtml()
2 parents 78abebc + f968577 commit 4781a98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Data/Util/ArrayAccessibleResourceBundle.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function get($offset)
3939
return $value instanceof \ResourceBundle ? new static($value) : $value;
4040
}
4141

42-
public function offsetExists($offset)
42+
public function offsetExists($offset): bool
4343
{
4444
return null !== $this->bundleImpl->get($offset);
4545
}
@@ -59,12 +59,12 @@ public function offsetUnset($offset)
5959
throw new BadMethodCallException('Resource bundles cannot be modified.');
6060
}
6161

62-
public function getIterator()
62+
public function getIterator(): \Traversable
6363
{
6464
return $this->bundleImpl;
6565
}
6666

67-
public function count()
67+
public function count(): int
6868
{
6969
return $this->bundleImpl->count();
7070
}

Data/Util/RingBuffer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(int $size)
4242
/**
4343
* {@inheritdoc}
4444
*/
45-
public function offsetExists($key)
45+
public function offsetExists($key): bool
4646
{
4747
return isset($this->indices[$key]);
4848
}

0 commit comments

Comments
 (0)