aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2022-09-28 09:50:22 +0000
committerMoritz Strohm <strohm@data-quest.de>2022-09-28 09:50:22 +0000
commit48960208784586e8ad9bde75626dc4e631e18711 (patch)
treee9248937013bfbb9432816d899dd2f46ca7cc620 /vendor
parent408bdb87a4eca0e4ac2b6eb85f6271e2c8c27b42 (diff)
fix for BIESt #1016
Merge request studip/studip!625
Diffstat (limited to 'vendor')
-rw-r--r--vendor/trails/src/response.php4
-rw-r--r--vendor/trails/trails.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/vendor/trails/src/response.php b/vendor/trails/src/response.php
index 60376b3..474bfc1 100644
--- a/vendor/trails/src/response.php
+++ b/vendor/trails/src/response.php
@@ -75,7 +75,7 @@ class Trails_Response {
*/
function set_status($status, $reason = NULL) {
$this->status = $status;
- $this->reason = isset($reason) ? $reason : $this->get_reason($status);
+ $this->reason = isset($reason) ? $reason : self::get_reason($status);
return $this;
}
@@ -87,7 +87,7 @@ class Trails_Response {
*
* @return string the reason phrase for this response's status
*/
- function get_reason($status) {
+ public static function get_reason($status) {
$reason = array(
100 => 'Continue', 'Switching Protocols',
200 => 'OK', 'Created', 'Accepted', 'Non-Authoritative Information',
diff --git a/vendor/trails/trails.php b/vendor/trails/trails.php
index a6ca003..760fb16 100644
--- a/vendor/trails/trails.php
+++ b/vendor/trails/trails.php
@@ -371,7 +371,7 @@ class Trails_Response {
*/
function set_status($status, $reason = NULL) {
$this->status = $status;
- $this->reason = isset($reason) ? $reason : $this->get_reason($status);
+ $this->reason = isset($reason) ? $reason : self::get_reason($status);
return $this;
}
@@ -383,7 +383,7 @@ class Trails_Response {
*
* @return string the reason phrase for this response's status
*/
- function get_reason($status) {
+ public static function get_reason($status) {
$reason = array(
100 => 'Continue', 'Switching Protocols',
200 => 'OK', 'Created', 'Accepted', 'Non-Authoritative Information',