From f46cda4b47244f9476c1d7239ffcde08b8dd6559 Mon Sep 17 00:00:00 2001 From: Jeremy Booker Date: Tue, 2 Jan 2018 13:49:54 -0500 Subject: [PATCH] Fix syntax error. Production php doesn't know about return types yet. --- class/TermFactory.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/class/TermFactory.php b/class/TermFactory.php index 3c7fc554..3998be65 100644 --- a/class/TermFactory.php +++ b/class/TermFactory.php @@ -25,7 +25,7 @@ public static function getTermByTermCode(string $termCode) { * in the database. Looks like: { 201840 => 'Fall 2018' } * @return Array Associative array of term codes and their descriptions */ - public static function getTermsAssoc(): array + public static function getTermsAssoc() { $db = PdoFactory::getPdoInstance(); @@ -65,7 +65,7 @@ public static function getNextTerm(Term $term) { * Get an associative array of terms > current term * in the database. Looks like: { raw_term => readable_string } */ - public static function getFutureTermsAssoc(): array + public static function getFutureTermsAssoc() { $db = PdoFactory::getPdoInstance(); @@ -78,7 +78,7 @@ public static function getFutureTermsAssoc(): array return $terms; } - public static function getAvailableTerms(): array + public static function getAvailableTerms() { $db = PdoFactory::getPdoInstance(); @@ -102,7 +102,7 @@ public static function getAvailableTerms(): array * @param $targetTerm Term to decide if exists or not * @return bool True if the given term eixsts in the database, false otherwise */ - public static function termExists(string $targetTermCode): bool + public static function termExists(string $targetTermCode) { $terms = self::getTermsAssoc();