Title: Error #[ReturnTypeWillChange]
Last modified: February 28, 2022

---

# Error #[ReturnTypeWillChange]

 *  Resolved [camperparkmurcia](https://wordpress.org/support/users/camperparkmurcia/)
 * (@camperparkmurcia)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-1624/)
 * Hola, me he tropezado con un error en la actualización 1.5 #[ReturnTypeWillChange].
 * vikbooking>libraries>adapter>application>registry.php. Line 23.
 * Si se elimina la línea, todo vuelve a funcionar correctamente.
 * Un saludo
    -  This topic was modified 4 years, 3 months ago by [camperparkmurcia](https://wordpress.org/support/users/camperparkmurcia/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [e4jvikwp](https://wordpress.org/support/users/e4jvikwp/)
 * (@e4jvikwp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-1624/#post-15410677)
 * Hello,
 * Thanks for the detailed report. Honestly, this is the first time we are told 
   of a similar compiler error, because that’s actually what developers should do
   in order to comply with the new PHP 8.1.
 * Moreover, the line of code involved is a PHP comment at all the effects. PHP 
   comments can start with a leading double slash // or with an hash #. That’s a
   particular “comment” though, as it tells some PHP versions the necessary information
   about the return type of some methods.
 * It wouldn’t cost us anything to remove that comment, but it’s actually needed.
   The WordPress core framework itself will start using this technique in a near
   future in order to comply with the latest PHP versions.
 * We suggest getting in touch with your hosting company to ask for more information
   regarding that “false error” you got. I’m sure that if you change PHP version
   that error will disappear. However, it’s important to highlight that is not an
   incompatibility issue with an old PHP version, it’s an incompatibility issue 
   with the way your PHP version was compiled, because that line of code should 
   be a comment for any PHP version, and for the most recent ones, it should tell
   you how to treat the “return type” for certain functions (methods).
 * Best regards,
    The VikWP Team
 *  Thread Starter [camperparkmurcia](https://wordpress.org/support/users/camperparkmurcia/)
 * (@camperparkmurcia)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-1624/#post-15410903)
 * Thank you very much for the information, I have contacted the hosting company
   and after updating the version of php, the error has been solved. Thank you very
   much for your reply.
 * Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error #[ReturnTypeWillChange]’ is closed to new replies.

 * ![](https://ps.w.org/vikbooking/assets/icon-256x256.png?rev=1855707)
 * [VikBooking Hotel Booking Engine & PMS](https://wordpress.org/plugins/vikbooking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/vikbooking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/vikbooking/)
 * [Active Topics](https://wordpress.org/support/plugin/vikbooking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vikbooking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vikbooking/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [camperparkmurcia](https://wordpress.org/support/users/camperparkmurcia/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/error-1624/#post-15410903)
 * Status: resolved