From 00dad8c75b408cdb113334c9d0cb13c51d146a41 Mon Sep 17 00:00:00 2001 From: Kamran Abdul Aziz Date: Sat, 23 May 2026 21:33:41 +0530 Subject: [PATCH] Correct render binding PHPDoc type --- bin/Handbook_Command.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/Handbook_Command.php b/bin/Handbook_Command.php index 900092ca..1f2bae45 100644 --- a/bin/Handbook_Command.php +++ b/bin/Handbook_Command.php @@ -137,7 +137,6 @@ function ( $parameter ) { $api['related'] = array_values( $api['related'] ); $api['has_related'] = ! empty( $api['related'] ); - // @phpstan-ignore argument.type $api_doc = self::render( 'internal-api.mustache', $api ); $path = self::get_handbook_path() . "/internal-api/{$api['api_slug']}.md"; if ( ! is_dir( dirname( $path ) ) ) { @@ -215,7 +214,6 @@ function ( $parameter ) { $api['related'] = array_values( $api['related'] ); $api['has_related'] = ! empty( $api['related'] ); - // @phpstan-ignore argument.type $api_doc = self::render( 'behat-steps.mustache', $api ); $path = self::get_handbook_path() . "/behat-steps/{$api['api_slug']}.md"; if ( ! is_dir( dirname( $path ) ) ) { @@ -872,7 +870,7 @@ private static function parse_docblock( $docblock ) { /** * @param string $path - * @param array|string>>> $binding + * @param array $binding */ private static function render( string $path, $binding ): string { $m = new Mustache_Engine();