PluginProbe
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs / 5.0.1
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs v5.0.1
5.0.1 4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 All 39 releases
← All changes | freemius/includes/managers/class-fs-key-value-storage.php +10 -0 1.2.3 → 5.0.1 View file →
@@ -297,8 +297,9 @@
297 297 function __get( $k ) {
298 298 return $this->get( $k, null );
299 299 }
300 300
301 + #[ReturnTypeWillChange]
301 302 function offsetSet( $k, $v ) {
302 303 if ( is_null( $k ) ) {
303 304 throw new Exception( 'Can\'t append value to request params.' );
304 305 } else {
@@ -305,16 +306,19 @@
305 306 $this->{$k} = $v;
306 307 }
307 308 }
308 309
310 + #[ReturnTypeWillChange]
309 311 function offsetExists( $k ) {
310 312 return array_key_exists( $k, $this->_data );
311 313 }
312 314
315 + #[ReturnTypeWillChange]
313 316 function offsetUnset( $k ) {
314 317 unset( $this->$k );
315 318 }
316 319
320 + #[ReturnTypeWillChange]
317 321 function offsetGet( $k ) {
318 322 return $this->get( $k, null );
319 323 }
320 324
@@ -324,8 +328,9 @@
324 328 *
325 329 * @link http://php.net/manual/en/iterator.current.php
326 330 * @return mixed Can return any type.
327 331 */
332 + #[ReturnTypeWillChange]
328 333 public function current() {
329 334 return current( $this->_data );
330 335 }
331 336
@@ -335,8 +340,9 @@
335 340 *
336 341 * @link http://php.net/manual/en/iterator.next.php
337 342 * @return void Any returned value is ignored.
338 343 */
344 + #[ReturnTypeWillChange]
339 345 public function next() {
340 346 next( $this->_data );
341 347 }
342 348
@@ -346,8 +352,9 @@
346 352 *
347 353 * @link http://php.net/manual/en/iterator.key.php
348 354 * @return mixed scalar on success, or null on failure.
349 355 */
356 + #[ReturnTypeWillChange]
350 357 public function key() {
351 358 return key( $this->_data );
352 359 }
353 360
@@ -358,8 +365,9 @@
358 365 * @link http://php.net/manual/en/iterator.valid.php
359 366 * @return boolean The return value will be casted to boolean and then evaluated.
360 367 * Returns true on success or false on failure.
361 368 */
369 + #[ReturnTypeWillChange]
362 370 public function valid() {
363 371 $key = key( $this->_data );
364 372
365 373 return ( $key !== null && $key !== false );
@@ -371,8 +379,9 @@
371 379 *
372 380 * @link http://php.net/manual/en/iterator.rewind.php
373 381 * @return void Any returned value is ignored.
374 382 */
383 + #[ReturnTypeWillChange]
375 384 public function rewind() {
376 385 reset( $this->_data );
377 386 }
378 387
@@ -385,8 +394,9 @@
385 394 * </p>
386 395 * <p>
387 396 * The return value is cast to an integer.
388 397 */
398 + #[ReturnTypeWillChange]
389 399 public function count() {
390 400 return count( $this->_data );
391 401 }
392 402 }