refactor: add strict typing
This commit is contained in:
parent
c1421d1978
commit
9aae69a693
19 changed files with 83 additions and 49 deletions
|
@ -25,6 +25,8 @@
|
|||
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace footnotes;
|
||||
|
||||
// If this file is called directly, abort.
|
||||
|
@ -90,12 +92,13 @@ function deactivate_footnotes(): void {
|
|||
|
||||
/*
|
||||
* TODO: currently these throw an error:
|
||||
* Uncaught TypeError: call_user_func_array(): Argument #1 ($function) must be
|
||||
* a valid callback, function "deactivate_footnotes" not found or invalid
|
||||
* Uncaught TypeError: call_user_func_array(): Argument #1 ($function) must be
|
||||
* a valid callback, function "deactivate_footnotes" not found or invalid
|
||||
* function name in /srv/www/wordpress-one/public_html/wp-includes/class-wp-hook.php:292
|
||||
*
|
||||
* register_activation_hook( __FILE__, 'activate_footnotes' );
|
||||
* register_deactivation_hook( __FILE__, 'deactivate_footnotes' );
|
||||
*/
|
||||
//register_activation_hook( __FILE__, 'activate_footnotes' );
|
||||
//register_deactivation_hook( __FILE__, 'deactivate_footnotes' );
|
||||
|
||||
/**
|
||||
* The core plugin class that defines internationalization, admin-specific and
|
||||
|
|
Reference in a new issue