@@ -94,6 +94,7 @@ public function animate($format, $delay, $loops)
94
94
*
95
95
* @see \Iterator::current()
96
96
*/
97
+ #[\ReturnTypeWillChange]
97
98
public function current ()
98
99
{
99
100
return $ this ->getClassFactory ()->createImage (ClassFactoryInterface::HANDLE_GD , $ this ->resource , $ this ->palette , new MetadataBag ());
@@ -104,6 +105,7 @@ public function current()
104
105
*
105
106
* @see \Iterator::key()
106
107
*/
108
+ #[\ReturnTypeWillChange]
107
109
public function key ()
108
110
{
109
111
return $ this ->offset ;
@@ -114,6 +116,7 @@ public function key()
114
116
*
115
117
* @see \Iterator::next()
116
118
*/
119
+ #[\ReturnTypeWillChange]
117
120
public function next ()
118
121
{
119
122
++$ this ->offset ;
@@ -124,6 +127,7 @@ public function next()
124
127
*
125
128
* @see \Iterator::rewind()
126
129
*/
130
+ #[\ReturnTypeWillChange]
127
131
public function rewind ()
128
132
{
129
133
$ this ->offset = 0 ;
@@ -134,6 +138,7 @@ public function rewind()
134
138
*
135
139
* @see \Iterator::valid()
136
140
*/
141
+ #[\ReturnTypeWillChange]
137
142
public function valid ()
138
143
{
139
144
return $ this ->offset < 1 ;
@@ -144,6 +149,7 @@ public function valid()
144
149
*
145
150
* @see \Countable::count()
146
151
*/
152
+ #[\ReturnTypeWillChange]
147
153
public function count ()
148
154
{
149
155
return 1 ;
@@ -154,6 +160,7 @@ public function count()
154
160
*
155
161
* @see \ArrayAccess::offsetExists()
156
162
*/
163
+ #[\ReturnTypeWillChange]
157
164
public function offsetExists ($ offset )
158
165
{
159
166
return 0 === $ offset ;
@@ -164,6 +171,7 @@ public function offsetExists($offset)
164
171
*
165
172
* @see \ArrayAccess::offsetGet()
166
173
*/
174
+ #[\ReturnTypeWillChange]
167
175
public function offsetGet ($ offset )
168
176
{
169
177
if (0 === $ offset ) {
@@ -178,6 +186,7 @@ public function offsetGet($offset)
178
186
*
179
187
* @see \ArrayAccess::offsetSet()
180
188
*/
189
+ #[\ReturnTypeWillChange]
181
190
public function offsetSet ($ offset , $ value )
182
191
{
183
192
throw new NotSupportedException ('GD does not support layer set ' );
@@ -188,6 +197,7 @@ public function offsetSet($offset, $value)
188
197
*
189
198
* @see \ArrayAccess::offsetUnset()
190
199
*/
200
+ #[\ReturnTypeWillChange]
191
201
public function offsetUnset ($ offset )
192
202
{
193
203
throw new NotSupportedException ('GD does not support layer unset ' );
0 commit comments