Skip to content

Commit

Permalink
adding fix to type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Oct 1, 2024
1 parent fe214d7 commit 9eb6fe3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion eightshift-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Rest/Routes/CptRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ public function register(): void
/**
* Get the cpt limits.
*
* @param array<string, mixed> $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<string, mixed>
*/
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,
Expand Down

0 comments on commit 9eb6fe3

Please sign in to comment.