@@ -54,7 +54,7 @@ public function fromArray($arr)
5454 /**
5555 * @return PropelOnDemandIterator
5656 */
57- public function getIterator ()
57+ public function getIterator (): Iterator
5858 {
5959 return $ this ->iterator ;
6060 }
@@ -67,7 +67,7 @@ public function getIterator()
6767 *
6868 * @return boolean
6969 */
70- public function offsetExists ($ offset )
70+ public function offsetExists ($ offset ): bool
7171 {
7272 if ($ offset == $ this ->currentKey ) {
7373 return true ;
@@ -81,7 +81,7 @@ public function offsetExists($offset)
8181 *
8282 * @return mixed
8383 */
84- public function offsetGet ($ offset )
84+ public function offsetGet ($ offset ): mixed
8585 {
8686 if ($ offset == $ this ->currentKey ) {
8787 return $ this ->currentRow ;
@@ -95,7 +95,7 @@ public function offsetGet($offset)
9595 * @param integer $offset
9696 * @param mixed $value
9797 */
98- public function offsetSet ($ offset , $ value )
98+ public function offsetSet ($ offset , $ value ): void
9999 {
100100 throw new PropelException ('The On Demand Collection is read only ' );
101101 }
@@ -104,7 +104,7 @@ public function offsetSet($offset, $value)
104104 * @throws PropelException
105105 * @param integer $offset
106106 */
107- public function offsetUnset ($ offset )
107+ public function offsetUnset ($ offset ): void
108108 {
109109 throw new PropelException ('The On Demand Collection is read only ' );
110110 }
@@ -114,7 +114,7 @@ public function offsetUnset($offset)
114114 /**
115115 * @throws PropelException
116116 */
117- public function serialize ()
117+ public function serialize (): string
118118 {
119119 throw new PropelException ('The On Demand Collection cannot be serialized ' );
120120 }
@@ -125,7 +125,7 @@ public function serialize()
125125 *
126126 * @return void
127127 */
128- public function unserialize ($ data )
128+ public function unserialize ($ data ): void
129129 {
130130 throw new PropelException ('The On Demand Collection cannot be serialized ' );
131131 }
@@ -138,14 +138,14 @@ public function unserialize($data)
138138 *
139139 * @return integer Number of results
140140 */
141- public function count ()
141+ public function count (): int
142142 {
143143 return $ this ->iterator ->count ();
144144 }
145145
146146 // ArrayObject methods
147147
148- public function append ($ value )
148+ public function append ($ value ): void
149149 {
150150 throw new PropelException ('The On Demand Collection is read only ' );
151151 }
@@ -155,51 +155,57 @@ public function prepend($value)
155155 throw new PropelException ('The On Demand Collection is read only ' );
156156 }
157157
158+ #[\ReturnTypeWillChange]
158159 public function asort ($ flags = SORT_REGULAR )
159160 {
160161 throw new PropelException ('The On Demand Collection is read only ' );
161162 }
162163
163- public function exchangeArray ($ input )
164+ public function exchangeArray ($ input ): array
164165 {
165166 throw new PropelException ('The On Demand Collection is read only ' );
166167 }
167168
168- public function getArrayCopy ()
169+ public function getArrayCopy (): array
169170 {
170171 throw new PropelException ('The On Demand Collection does not allow acces by offset ' );
171172 }
172173
173- public function getFlags ()
174+ public function getFlags (): int
174175 {
175176 throw new PropelException ('The On Demand Collection does not allow acces by offset ' );
176177 }
177178
179+ #[\ReturnTypeWillChange]
178180 public function ksort ($ flags = SORT_REGULAR )
179181 {
180182 throw new PropelException ('The On Demand Collection is read only ' );
181183 }
182184
185+ #[\ReturnTypeWillChange]
183186 public function natcasesort ()
184187 {
185188 throw new PropelException ('The On Demand Collection is read only ' );
186189 }
187190
191+ #[\ReturnTypeWillChange]
188192 public function natsort ()
189193 {
190194 throw new PropelException ('The On Demand Collection is read only ' );
191195 }
192196
193- public function setFlags ($ flags )
197+ public function setFlags ($ flags ): void
194198 {
195199 throw new PropelException ('The On Demand Collection does not allow acces by offset ' );
196200 }
197201
202+ #[\ReturnTypeWillChange]
198203 public function uasort ($ cmp_function )
199204 {
200205 throw new PropelException ('The On Demand Collection is read only ' );
201206 }
202207
208+ #[\ReturnTypeWillChange]
203209 public function uksort ($ cmp_function )
204210 {
205211 throw new PropelException ('The On Demand Collection is read only ' );
0 commit comments