Skip to content

Commit 0a11903

Browse files
committed
Updating parser to take string course numbers
1 parent 2fd6065 commit 0a11903

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ function halt($messages) {
8989
* @param $quarter int The term that the course is in
9090
* @param $departCode string The code of the department
9191
* @param $classCode string The code for the class
92-
* @param $course int The number of the course
92+
* @param $course string The number of the course
9393
* @param $credits int The credits the course offers
9494
* @param $title string The title of the course
9595
* @param $description string The description for the course
9696
* @return mixed String of error message returned on failure.
9797
* Integer of course ID returned on success
9898
*/
99-
function insertOrUpdateCourse(int $quarter, string $departCode, string $classCode, int $course, int $credits, string $title, string $description) {
99+
function insertOrUpdateCourse(int $quarter, string $departCode, string $classCode, string $course, int $credits, string $title, string $description) {
100100
global $coursesUpdated, $coursesAdded;
101101
// Call the stored proc
102102
// TODO: Refactor out department ID number (0000)

0 commit comments

Comments
 (0)