| @@ -58,12 +58,12 @@ | ||
| 58 | 58 | /** |
| 59 | 59 | * Register Yatra block category |
| 60 | 60 | * |
| 61 | 61 | * @param array $categories Existing block categories |
| 62 | - * @param \WP_Block_Editor_Context $context Block editor context | |
| 62 | + * @param \WP_Block_Editor_Context|null $context Block editor context | |
| 63 | 63 | * @return array Modified categories |
| 64 | 64 | */ |
| 65 | - public function registerBlockCategory(array $categories, \WP_Block_Editor_Context $context): array | |
| 65 | + public function registerBlockCategory(array $categories, ?\WP_Block_Editor_Context $context = null): array | |
| 66 | 66 | { |
| 67 | 67 | // Add Yatra category at the beginning |
| 68 | 68 | array_unshift($categories, [ |
| 69 | 69 | 'slug' => 'yatra', |