From 72a801fafdd619d9cba7ab0a990db0fe099b70bc Mon Sep 17 00:00:00 2001 From: Torben Lundsgaard Date: Mon, 13 May 2024 14:09:12 +0200 Subject: [PATCH] Update PHPStan level to 1 --- bin/phpstan/constants.php | 13 +++++++++++++ phpstan.neon.dist | 3 ++- src/Admin/SetupWizard.php | 2 ++ src/Frontend/UserData.php | 1 + 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 bin/phpstan/constants.php diff --git a/bin/phpstan/constants.php b/bin/phpstan/constants.php new file mode 100644 index 0000000..e98fdd7 --- /dev/null +++ b/bin/phpstan/constants.php @@ -0,0 +1,13 @@ +options->get( 'general', 'datalayer_user_id' ); $include_user_role = $this->options->get( 'general', 'datalayer_user_role' ); + $current_user_id = 0; if ( $include_logged_in || $include_user_id || $include_user_role ) { $current_user_id = get_current_user_id(); }