diff --git a/config/psalm/psalm-baseline.xml b/config/psalm/psalm-baseline.xml
index 63500b38af..503df4e634 100644
--- a/config/psalm/psalm-baseline.xml
+++ b/config/psalm/psalm-baseline.xml
@@ -187,9 +187,6 @@
'course-category'
-
- $cats
-
$name
$post_id
@@ -201,9 +198,6 @@
is_enrolled
-
- $cats
-
get_provider_results
diff --git a/includes/admin/class-sensei-learners-main.php b/includes/admin/class-sensei-learners-main.php
index ea61e0f6d8..315b8b7ea9 100644
--- a/includes/admin/class-sensei-learners-main.php
+++ b/includes/admin/class-sensei-learners-main.php
@@ -161,6 +161,7 @@ public function get_lesson_id() {
* @return array $columns, the array of columns to use with the table
*/
public function get_columns() {
+ $columns = array();
switch ( $this->view ) {
case 'learners':
@@ -935,6 +936,8 @@ private function is_manually_enrolled( $user_id ) {
* @return void
*/
public function no_items() {
+ $text = '';
+
switch ( $this->view ) {
case 'learners':
$text = __( 'No students found.', 'sensei-lms' );
@@ -1207,6 +1210,7 @@ public function add_learners_box() {
* @return string $text
*/
public function search_button() {
+ $text = '';
switch ( $this->view ) {
case 'learners':