custom-facebook-feed
Last commit date
admin
2 weeks ago
assets
2 weeks ago
inc
2 weeks ago
languages
2 weeks ago
templates
2 weeks ago
vendor
2 weeks ago
README.txt
2 weeks ago
changelog.txt
2 weeks ago
custom-facebook-feed.php
2 weeks ago
elementor-stubs.php
2 weeks ago
email.php
2 weeks ago
gpl-2.0.txt
2 weeks ago
index.php
2 weeks ago
elementor-stubs.php
26 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Static-analysis stubs. |
| 4 | * |
| 5 | * The Elementor plugin is not a Composer dependency of this plugin, so its |
| 6 | * classes are invisible to PHPStan. This file declares a minimal stub of the |
| 7 | * Elementor base class that CFF_Elementor_Widget extends, purely so static |
| 8 | * analysis can resolve it and the control methods it calls. |
| 9 | * |
| 10 | * It is never loaded at runtime: nothing requires it, it lives outside the |
| 11 | * PSR-4 autoload root (inc/), and the class_exists() guard means it can never |
| 12 | * redeclare the real Elementor class when the Elementor plugin is active. |
| 13 | */ |
| 14 | |
| 15 | namespace Elementor; |
| 16 | |
| 17 | // phpcs:disable -- static-analysis stub only; not subject to coding standards. |
| 18 | if ( ! class_exists( '\Elementor\Widget_Base' ) ) { |
| 19 | abstract class Widget_Base { |
| 20 | public function start_controls_section( ...$args ) {} |
| 21 | public function add_control( ...$args ) {} |
| 22 | public function end_controls_section( ...$args ) {} |
| 23 | public function get_settings_for_display( ...$args ) {} |
| 24 | } |
| 25 | } |
| 26 |