Core requires class definitions to be in their own file.
The WP_Navigation_Block_Renderer class should be moved out of packages/block-library/src/navigation/index.php to its own file, packages/block-library/src/navigation/class-wp-navigation-block-renderer.php
Besides: why is the class not prefixed anyway? I thought Gutenberg fixed class and function prefixes during the build process.
Core requires class definitions to be in their own file.
The
WP_Navigation_Block_Rendererclass should be moved out ofpackages/block-library/src/navigation/index.phpto its own file,packages/block-library/src/navigation/class-wp-navigation-block-renderer.phpBesides: why is the class not prefixed anyway? I thought Gutenberg fixed class and function prefixes during the build process.