| @@ -112,13 +112,14 @@ | ||
| 112 | 112 | // @todo Throw exception if not found. |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | + * @since 4.17.0 Declare the nullable parameter explicitly. | |
| 116 | 117 | * @since 3.0.0 |
| 117 | 118 | * |
| 118 | 119 | * @return BlockModel|BlockCollection|null |
| 119 | 120 | */ |
| 120 | - private function findByNameRecursive(string $blockName, int $blockIndex = 0, string $return = 'self', BlockCollection $blockCollection = null, int &$count = 0) | |
| 121 | + private function findByNameRecursive(string $blockName, int $blockIndex = 0, string $return = 'self', ?BlockCollection $blockCollection = null, int &$count = 0) | |
| 121 | 122 | { |
| 122 | 123 | if (!$blockCollection) { |
| 123 | 124 | $blockCollection = $this; |
| 124 | 125 | } |