From 9eb6fe356540b905c2f2a721a5c967af7cf6dda6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Tue, 1 Oct 2024 12:12:17 +0200 Subject: [PATCH] adding fix to type hint --- CHANGELOG.md | 7 +++++++ eightshift-forms.php | 2 +- src/Rest/Routes/CptRoutes.php | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5bf6854..244c46c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/). +## [5.1.2] + +### Fixed + +- Wrong function type hint for `getCptLimits` function. + ## [5.1.1] ### Changed @@ -686,6 +692,7 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a - Initial production release. +[5.1.2]: https://github.com/infinum/eightshift-forms/compare/5.1.1...5.1.2 [5.1.1]: https://github.com/infinum/eightshift-forms/compare/5.1.0...5.1.1 [5.1.0]: https://github.com/infinum/eightshift-forms/compare/5.0.10...5.1.0 [5.0.10]: https://github.com/infinum/eightshift-forms/compare/5.0.9...5.0.10 diff --git a/eightshift-forms.php b/eightshift-forms.php index eba998a4..11dddaf8 100644 --- a/eightshift-forms.php +++ b/eightshift-forms.php @@ -6,7 +6,7 @@ * Description: Eightshift Forms is a complete form builder plugin that utilizes modern Block editor features with multiple third-party integrations, bringing your project to a new level. * Author: WordPress team @Infinum * Author URI: https://eightshift.com/ - * Version: 5.1.0 + * Version: 5.1.2 * Text Domain: eightshift-forms * * @package EightshiftForms diff --git a/src/Rest/Routes/CptRoutes.php b/src/Rest/Routes/CptRoutes.php index e2d66f6a..1251a3da 100644 --- a/src/Rest/Routes/CptRoutes.php +++ b/src/Rest/Routes/CptRoutes.php @@ -34,13 +34,13 @@ public function register(): void /** * Get the cpt limits. * - * @param array $results The response data. + * @param mixed $results The response data. * @param WP_REST_Server $server The server object. * @param WP_REST_Request $request The request object. * * @return array */ - public function getCptLimits(array $results, WP_REST_Server $server, WP_REST_Request $request): array + public function getCptLimits($results, WP_REST_Server $server, WP_REST_Request $request): array { $disableRoutes = [ '/wp/v2/' . UtilsConfig::SLUG_POST_TYPE,