PluginProbe
Packeta / 2.1
Packeta v2.1
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
← All changes | deps/nette/utils/src/Iterators/CachingIterator.php +2 -2 1.6.12.1 View file →
@@ -44,9 +44,9 @@
44 44 }
45 45 /**
46 46 * Is the current element the first one?
47 47 */
48 - public function isFirst(int $gridWidth = null) : bool
48 + public function isFirst(?int $gridWidth = null) : bool
49 49 {
50 50 return $this->counter === 1 || $gridWidth && $this->counter !== 0 && ($this->counter - 1) % $gridWidth === 0;
51 51 }
52 52 /**
@@ -51,9 +51,9 @@
51 51 }
52 52 /**
53 53 * Is the current element the last one?
54 54 */
55 - public function isLast(int $gridWidth = null) : bool
55 + public function isLast(?int $gridWidth = null) : bool
56 56 {
57 57 return !$this->hasNext() || $gridWidth && $this->counter % $gridWidth === 0;
58 58 }
59 59 /**