) { return $this->container->get( $this->get_helper_class( $helper ) ); } /** * Magic isset for ensuring helper exists. * * @param string $helper The helper to get. * * @return bool Whether the helper exists. */ public function __isset( $helper ) { return $this->container->has( $this->get_helper_class( $helper ) ); } /** * Prevents setting dynamic properties and unsetting declared properties * from an inaccessible context. * * @param string $name The property name. * @param mixed $value The property value. * * @return void * * @throws Forbidden_Property_Mutation_Exception Set is never meant to be called. */ public function __set( $name, $value ) { // @phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed -- __set must have a name and value - PHPCS #3715. throw Forbidden_Property_Mutation_Exception::cannot_set_because_property_is_immutable( $name ); } /** * Prevents unsetting dynamic properties and unsetting declared properties * from an inaccessible context. * * @param string $name The property name. * * @return void * * @throws Forbidden_Property_Mutation_Exception Unset is never meant to be called. */ public function __unset( $name ) { throw Forbidden_Property_Mutation_Exception::cannot_unset_because_property_is_immutable( $name ); } /** * Get the class name from a helper slug * * @param string $helper The name of the helper. * * @return string */ protected function get_helper_class( $helper ) { $helper = \implode( '_', \array_map( 'ucfirst', \explode( '_', $helper ) ) ); return "Yoast\WP\SEO\Helpers\\{$helper}_Helper"; } }
Fatal error: Uncaught Error: Class 'Yoast\WP\SEO\Surfaces\Helpers_Surface' not found in /home/khodroc1/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php:5565 Stack trace: #0 /home/khodroc1/public_html/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php(271): Yoast\WP\SEO\Generated\Cached_Container->getHelpersSurfaceService() #1 /home/khodroc1/public_html/wp-content/plugins/wordpress-seo/lib/abstract-main.php(80): YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container->get('Yoast\\WP\\SEO\\Su...') #2 /home/khodroc1/public_html/wp-content/plugins/wordpress-seo/admin/watchers/class-slug-change-watcher.php(20): Yoast\WP\Lib\Abstract_Main->__get('helpers') #3 /home/khodroc1/public_html/wp-content/plugins/wordpress-seo/wp-seo-main.php(373): WPSEO_Slug_Change_Watcher->register_hooks() #4 /home/khodroc1/public_html/wp-includes/class-wp-hook.php(324): wpseo_init('') #5 /home/khodroc1/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, in /home/khodroc1/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php on line 5565