From 9d448a0ba52d2f9bb913c341b5cfa15955d331b7 Mon Sep 17 00:00:00 2001 From: Will Lewis Date: Sat, 1 Aug 2020 13:14:49 -0400 Subject: [PATCH] Update setOutputFormat method. Update the parameter type from string to int on the setOutputFormat method. The constants for the output formats are integers, so having the parameter type as a string doesn't work. --- src/StanfordTagger/StanfordTagger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StanfordTagger/StanfordTagger.php b/src/StanfordTagger/StanfordTagger.php index 6efaee8..b1f18f5 100644 --- a/src/StanfordTagger/StanfordTagger.php +++ b/src/StanfordTagger/StanfordTagger.php @@ -55,7 +55,7 @@ public function getJavaPath() return $this->java; } - public function setOutputFormat(string $format) + public function setOutputFormat(int $format) { switch ($format) {