From 48808e9859fcab36b4eaa5acde19f46de61745f6 Mon Sep 17 00:00:00 2001 From: David Woloszyn Date: Mon, 19 Sep 2022 11:38:10 +1000 Subject: [PATCH] MDL-78620 lib: Upgrade phpCAS to 1.5.0 --- auth/cas/CAS/vendor/apereo/phpcas/CAS.php | 2 +- auth/cas/CAS/vendor/apereo/phpcas/README.md | 2 +- .../CAS/vendor/apereo/phpcas/composer.json | 18 +++--- .../CAS/vendor/apereo/phpcas/phpunit.xml.dist | 30 ++++----- .../CAS/vendor/apereo/phpcas/source/CAS.php | 11 +--- .../source/CAS/AuthenticationException.php | 16 +++-- .../apereo/phpcas/source/CAS/Autoload.php | 8 +-- .../apereo/phpcas/source/CAS/Client.php | 62 ++++++++++++++----- .../apereo/phpcas/source/CAS/CookieJar.php | 2 +- .../apereo/phpcas/source/CAS/Exception.php | 4 +- .../CAS/GracefullTerminationException.php | 4 +- .../source/CAS/InvalidArgumentException.php | 4 +- .../phpcas/source/CAS/Languages/Catalan.php | 2 +- .../CAS/Languages/ChineseSimplified.php | 4 +- .../phpcas/source/CAS/Languages/English.php | 4 +- .../phpcas/source/CAS/Languages/French.php | 4 +- .../phpcas/source/CAS/Languages/Galego.php | 4 +- .../phpcas/source/CAS/Languages/German.php | 2 +- .../phpcas/source/CAS/Languages/Greek.php | 2 +- .../phpcas/source/CAS/Languages/Japanese.php | 2 +- .../CAS/Languages/LanguageInterface.php | 4 +- .../source/CAS/Languages/Portuguese.php | 2 +- .../phpcas/source/CAS/Languages/Spanish.php | 2 +- ...uenceBeforeAuthenticationCallException.php | 2 +- .../OutOfSequenceBeforeClientException.php | 2 +- .../CAS/OutOfSequenceBeforeProxyException.php | 2 +- .../source/CAS/OutOfSequenceException.php | 2 +- .../source/CAS/PGTStorage/AbstractStorage.php | 2 +- .../phpcas/source/CAS/PGTStorage/Db.php | 2 +- .../phpcas/source/CAS/PGTStorage/File.php | 2 +- .../phpcas/source/CAS/ProxiedService.php | 2 +- .../source/CAS/ProxiedService/Abstract.php | 2 +- .../source/CAS/ProxiedService/Exception.php | 2 +- .../phpcas/source/CAS/ProxiedService/Http.php | 2 +- .../CAS/ProxiedService/Http/Abstract.php | 2 +- .../source/CAS/ProxiedService/Http/Get.php | 2 +- .../source/CAS/ProxiedService/Http/Post.php | 2 +- .../phpcas/source/CAS/ProxiedService/Imap.php | 2 +- .../source/CAS/ProxiedService/Testable.php | 2 +- .../apereo/phpcas/source/CAS/ProxyChain.php | 2 +- .../source/CAS/ProxyChain/AllowedList.php | 2 +- .../phpcas/source/CAS/ProxyChain/Any.php | 2 +- .../source/CAS/ProxyChain/Interface.php | 4 +- .../phpcas/source/CAS/ProxyChain/Trusted.php | 2 +- .../source/CAS/ProxyTicketException.php | 2 +- .../source/CAS/Request/AbstractRequest.php | 2 +- .../source/CAS/Request/CurlMultiRequest.php | 2 +- .../phpcas/source/CAS/Request/CurlRequest.php | 11 +--- .../phpcas/source/CAS/Request/Exception.php | 2 +- .../CAS/Request/MultiRequestInterface.php | 2 +- .../source/CAS/Request/RequestInterface.php | 2 +- .../phpcas/source/CAS/Session/PhpSession.php | 2 +- .../source/CAS/TypeMismatchException.php | 2 +- auth/cas/CAS/vendor/autoload.php | 7 ++- .../CAS/vendor/composer/InstalledVersions.php | 16 ++--- .../CAS/vendor/composer/autoload_classmap.php | 2 +- .../vendor/composer/autoload_namespaces.php | 2 +- .../cas/CAS/vendor/composer/autoload_psr4.php | 2 +- .../cas/CAS/vendor/composer/autoload_real.php | 31 ++-------- .../CAS/vendor/composer/autoload_static.php | 8 +-- auth/cas/CAS/vendor/composer/installed.json | 24 +++---- auth/cas/CAS/vendor/composer/installed.php | 14 ++--- .../CAS/vendor/composer/platform_check.php | 4 +- 63 files changed, 191 insertions(+), 185 deletions(-) diff --git a/auth/cas/CAS/vendor/apereo/phpcas/CAS.php b/auth/cas/CAS/vendor/apereo/phpcas/CAS.php index f38e7b113ab..6ddcf07bce1 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/CAS.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/CAS.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/README.md b/auth/cas/CAS/vendor/apereo/phpcas/README.md index 0dbc9258af1..d48128912e8 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/README.md +++ b/auth/cas/CAS/vendor/apereo/phpcas/README.md @@ -13,7 +13,7 @@ Api documentation can be found here: https://apereo.github.io/phpCAS/api/ -[![Build Status](https://travis-ci.org/apereo/phpCAS.png)](https://travis-ci.org/apereo/phpCAS) +[![Test](https://github.com/apereo/phpCAS/actions/workflows/test.yml/badge.svg)](https://github.com/apereo/phpCAS/actions/workflows/test.yml) LICENSE ------- diff --git a/auth/cas/CAS/vendor/apereo/phpcas/composer.json b/auth/cas/CAS/vendor/apereo/phpcas/composer.json index e6e504e9c0c..89ab7b9f61d 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/composer.json +++ b/auth/cas/CAS/vendor/apereo/phpcas/composer.json @@ -22,13 +22,15 @@ } ], "require" : { - "php" : ">=7.0.0", + "php" : ">=7.1.0", "ext-curl" : "*", - "psr/log" : "^1.0.0" - }, + "ext-dom" : "*", + "psr/log" : "^1.0 || ^2.0 || ^3.0" + }, "require-dev" : { - "monolog/monolog" : "^1.0.0", - "phpunit/phpunit" : ">=4.8.35 <8" + "monolog/monolog" : "^1.0.0 || ^2.0.0", + "phpunit/phpunit" : ">=7.5", + "phpstan/phpstan" : "^1.5" }, "autoload" : { "classmap" : [ @@ -36,16 +38,18 @@ ] }, "autoload-dev" : { + "files": ["source/CAS.php"], "psr-4" : { "PhpCas\\" : "test/CAS/" } }, "scripts" : { - "test" : "phpunit" + "test" : "phpunit", + "phpstan" : "phpstan" }, "extra" : { "branch-alias" : { "dev-master" : "1.3.x-dev" } } -} \ No newline at end of file +} diff --git a/auth/cas/CAS/vendor/apereo/phpcas/phpunit.xml.dist b/auth/cas/CAS/vendor/apereo/phpcas/phpunit.xml.dist index 20cb6c62a06..f0431f153fa 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/phpunit.xml.dist +++ b/auth/cas/CAS/vendor/apereo/phpcas/phpunit.xml.dist @@ -1,21 +1,13 @@ - - - - - test/CAS/Tests/ - - - - - - source/ - - + + + + source/ + + + + + test/CAS/Tests/ + + diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS.php index 045c9162646..c30e22d0ab5 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS.php @@ -20,7 +20,7 @@ * * * Interface class of the phpCAS library - * PHP Version 5 + * PHP Version 7 * * @file CAS/CAS.php * @category Authentication @@ -57,7 +57,7 @@ if (!isset($_SERVER['REQUEST_URI']) && isset($_SERVER['SCRIPT_NAME']) && isset($ /** * phpCAS version. accessible for the user by phpCAS::getVersion(). */ -define('PHPCAS_VERSION', '1.4.0'); +define('PHPCAS_VERSION', '1.5.0'); /** * @addtogroup public @@ -136,11 +136,6 @@ define("SAML_SOAP_ENV_CLOSE", ''); */ define("SAML_ATTRIBUTES", 'SAMLATTRIBS'); -/** - * SAML Attributes - */ -define("DEFAULT_ERROR", 'Internal script failure'); - /** @} */ /** * @addtogroup publicPGTStorage @@ -597,8 +592,6 @@ class phpCAS } if (self::$_PHPCAS_VERBOSE) { echo "
\nphpCAS error: " . __CLASS__ . "::" . $function . '(): ' . htmlentities($msg) . " in " . $file . " on line " . $line . "
\n"; - } else { - echo "
\nError: ". DEFAULT_ERROR ."
\n"; } phpCAS :: trace($msg . ' in ' . $file . 'on line ' . $line ); phpCAS :: traceEnd(); diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/AuthenticationException.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/AuthenticationException.php index 3b73685ff95..803c88908bb 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/AuthenticationException.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/AuthenticationException.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/AuthenticationException.php * @category Authentication @@ -72,11 +72,15 @@ implements CAS_Exception phpCAS::traceBegin(); $lang = $client->getLangObj(); $client->printHTMLHeader($lang->getAuthenticationFailed()); - printf( - $lang->getYouWereNotAuthenticated(), - htmlentities($client->getURL()), - isset($_SERVER['SERVER_ADMIN']) ? $_SERVER['SERVER_ADMIN']:'' - ); + + if (phpCAS::getVerbose()) { + printf( + $lang->getYouWereNotAuthenticated(), + htmlentities($client->getURL()), + $_SERVER['SERVER_ADMIN'] ?? '' + ); + } + phpCAS::trace($messages[] = 'CAS URL: '.$cas_url); phpCAS::trace($messages[] = 'Authentication failure: '.$failure); if ( $no_response ) { diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Autoload.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Autoload.php index ee803cbf1dd..29395d592d7 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Autoload.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Autoload.php @@ -3,7 +3,7 @@ /** * Autoloader Class * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Autoload.php * @category Authentication @@ -68,12 +68,12 @@ function CAS_autoload($class) ); $trace = $e->getTrace(); if (isset($trace[2]) && isset($trace[2]['function']) - && in_array($trace[2]['function'], array('class_exists', 'interface_exists')) + && in_array($trace[2]['function'], array('class_exists', 'interface_exists', 'trait_exists')) ) { return false; } if (isset($trace[1]) && isset($trace[1]['function']) - && in_array($trace[1]['function'], array('class_exists', 'interface_exists')) + && in_array($trace[1]['function'], array('class_exists', 'interface_exists', 'trait_exists')) ) { return false; } @@ -92,4 +92,4 @@ if (!class_exists('CAS_Client')) // it to the autoload stack spl_autoload_register('__autoload'); } -} \ No newline at end of file +} diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Client.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Client.php index 91374973c8c..1a40f63e4f5 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Client.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Client.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Client.php * @category Authentication @@ -102,6 +102,10 @@ class CAS_Client */ public function printHTMLHeader($title) { + if (!phpCAS::getVerbose()) { + return; + } + $this->_htmlFilterOutput( str_replace( '__TITLE__', $title, @@ -130,16 +134,17 @@ class CAS_Client */ public function printHTMLFooter() { + if (!phpCAS::getVerbose()) { + return; + } + $lang = $this->getLangObj(); - $this->_htmlFilterOutput( - empty($this->_output_footer)? - (phpCAS::getVerbose())? - '
phpCAS __PHPCAS_VERSION__ ' - .$lang->getUsingServer() - .' __SERVER_BASE_URL__ (CAS __CAS_VERSION__)
' - :'' - :$this->_output_footer - ); + $message = empty($this->_output_footer) + ? '
phpCAS __PHPCAS_VERSION__ ' . $lang->getUsingServer() . + ' __SERVER_BASE_URL__ (CAS __CAS_VERSION__)
' + : $this->_output_footer; + + $this->_htmlFilterOutput($message); } /** @@ -174,6 +179,21 @@ class CAS_Client $this->_output_footer = $footer; } + /** + * Simple wrapper for printf function, that respects + * phpCAS verbosity setting. + * + * @param string $format + * @param string|int|float ...$values + * + * @see printf() + */ + private function printf(string $format, ...$values): void + { + if (phpCAS::getVerbose()) { + printf($format, ...$values); + } + } /** @} */ @@ -1037,7 +1057,7 @@ class CAS_Client } else { //normal mode: get ticket and remove it from CGI parameters for // developers - $ticket = (isset($_GET['ticket']) ? $_GET['ticket'] : null); + $ticket = (isset($_GET['ticket']) ? $_GET['ticket'] : ''); if (preg_match('/^[SP]T-/', $ticket) ) { phpCAS::trace('Ticket \''.$ticket.'\' found'); $this->setTicket($ticket); @@ -1553,7 +1573,7 @@ class CAS_Client { phpCAS::traceBegin(); $res = false; - $validate_url = ''; + if ( $this->_wasPreviouslyAuthenticated() ) { if ($this->hasTicket()) { // User has a additional ticket but was already authenticated @@ -1587,6 +1607,10 @@ class CAS_Client $this->markAuthenticationCall($res); } else { if ($this->hasTicket()) { + $validate_url = ''; + $text_response = ''; + $tree_response = ''; + switch ($this->getServerVersion()) { case CAS_VERSION_1_0: // if a Service Ticket was given, validate it @@ -1650,7 +1674,7 @@ class CAS_Client $logoutTicket = $this->getTicket(); break; default: - phpCAS::trace('Protocoll error'); + phpCAS::trace('Protocol error'); break; } } else { @@ -1827,7 +1851,7 @@ class CAS_Client phpCAS::trace("Redirect to : ".$cas_url); $lang = $this->getLangObj(); $this->printHTMLHeader($lang->getAuthenticationWanted()); - printf('

'. $lang->getShouldHaveBeenRedirected(). '

', $cas_url); + $this->printf('

'. $lang->getShouldHaveBeenRedirected(). '

', $cas_url); $this->printHTMLFooter(); phpCAS::traceExit(); throw new CAS_GracefullTerminationException(); @@ -1870,7 +1894,7 @@ class CAS_Client } $lang = $this->getLangObj(); $this->printHTMLHeader($lang->getLogout()); - printf('

'.$lang->getShouldHaveBeenRedirected(). '

', $cas_url); + $this->printf('

'.$lang->getShouldHaveBeenRedirected(). '

', $cas_url); $this->printHTMLFooter(); phpCAS::traceExit(); throw new CAS_GracefullTerminationException(); @@ -2159,6 +2183,8 @@ class CAS_Client $validate_url .= '&renew=true'; } + $headers = ''; + $err_msg = ''; // open and read the URL if ( !$this->_readURL($validate_url, $headers, $text_response, $err_msg) ) { phpCAS::trace( @@ -2235,6 +2261,8 @@ class CAS_Client $validate_url .= '&renew=true'; } + $headers = ''; + $err_msg = ''; // open and read the URL if ( !$this->_readURL($validate_url, $headers, $text_response, $err_msg) ) { phpCAS::trace( @@ -2892,6 +2920,8 @@ class CAS_Client $cas_url = $this->getServerProxyURL().'?targetService=' .urlencode($target_service).'&pgt='.$this->_getPGT(); + $headers = ''; + $cas_response = ''; // open and read the URL if ( !$this->_readURL($cas_url, $headers, $cas_response, $err_msg) ) { phpCAS::trace( @@ -4147,7 +4177,7 @@ class CAS_Client phpCAS::traceBegin(); $lang = $this->getLangObj(); $this->printHTMLHeader($lang->getAuthenticationFailed()); - printf( + $this->printf( $lang->getYouWereNotAuthenticated(), htmlentities($this->getURL()), isset($_SERVER['SERVER_ADMIN']) ? $_SERVER['SERVER_ADMIN']:'' ); diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/CookieJar.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/CookieJar.php index 760794f41bc..b2439373ad0 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/CookieJar.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/CookieJar.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/CookieJar.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Exception.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Exception.php index d956d197590..2ff7cd658d8 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Exception.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Exception.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Exception.php * @category Authentication @@ -56,4 +56,4 @@ interface CAS_Exception { } -?> \ No newline at end of file +?> diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/GracefullTerminationException.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/GracefullTerminationException.php index d1d035c39b2..29aa638cd88 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/GracefullTerminationException.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/GracefullTerminationException.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/GracefullTerminationException.php * @category Authentication @@ -83,4 +83,4 @@ implements CAS_Exception } } -?> \ No newline at end of file +?> diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/InvalidArgumentException.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/InvalidArgumentException.php index ba43d39f8a1..99be2ac3294 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/InvalidArgumentException.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/InvalidArgumentException.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/InvalidArgumentException.php * @category Authentication @@ -43,4 +43,4 @@ implements CAS_Exception { } -?> \ No newline at end of file +?> diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Catalan.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Catalan.php index a0b64d8eb5f..1ead905fc9e 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Catalan.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Catalan.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Language/Catalan.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/ChineseSimplified.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/ChineseSimplified.php index bb665937e30..5e33cb650db 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/ChineseSimplified.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/ChineseSimplified.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Language/ChineseSimplified.php * @category Authentication @@ -111,4 +111,4 @@ class CAS_Languages_ChineseSimplified implements CAS_Languages_LanguageInterface { return '服务器 %s 不可用(%s)。'; } -} \ No newline at end of file +} diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/English.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/English.php index 002c1ba49e9..cb13bde93a8 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/English.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/English.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Language/English.php * @category Authentication @@ -111,4 +111,4 @@ class CAS_Languages_English implements CAS_Languages_LanguageInterface { return 'The service `%s\' is not available (%s).'; } -} \ No newline at end of file +} diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/French.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/French.php index b99847a7f06..14f65aba24b 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/French.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/French.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Language/French.php * @category Authentication @@ -113,4 +113,4 @@ class CAS_Languages_French implements CAS_Languages_LanguageInterface } } -?> \ No newline at end of file +?> diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Galego.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Galego.php index 7d1b7dbd204..d5bf4045574 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Galego.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Galego.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Language/Galego.php * @category Authentication @@ -101,7 +101,7 @@ class CAS_Languages_Galego implements CAS_Languages_LanguageInterface public function getYouWereNotAuthenticated() { return ' -

Non estás autenticado

Podes volver tentalo facendo click aquí.

Se o problema persiste debería contactar con el administrador deste sitio.

'; +

Non estás autenticado

Podes volver tentalo facendo click aquí.

Se o problema persiste debería contactar con el administrador deste sitio.

'; } /** diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/German.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/German.php index ed3150a80c2..b718b145212 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/German.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/German.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Language/German.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Greek.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Greek.php index 888ce24160e..1cfb107e4a7 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Greek.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Greek.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Language/Greek.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Japanese.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Japanese.php index a15bf17b1f4..568148458de 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Japanese.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Japanese.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Language/Japanese.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/LanguageInterface.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/LanguageInterface.php index 5de93aa7b20..dfb0ac51442 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/LanguageInterface.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/LanguageInterface.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Language/LanguageInterface.php * @category Authentication @@ -93,4 +93,4 @@ interface CAS_Languages_LanguageInterface public function getServiceUnavailable(); } -?> \ No newline at end of file +?> diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Portuguese.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Portuguese.php index c3869ef08b5..a927cad6291 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Portuguese.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Portuguese.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Language/Portuguese.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Spanish.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Spanish.php index 5675a41d80c..c6ea50e7470 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Spanish.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Languages/Spanish.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Language/Spanish.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeAuthenticationCallException.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeAuthenticationCallException.php index ef830979586..d4d7680de6a 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeAuthenticationCallException.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeAuthenticationCallException.php @@ -18,7 +18,7 @@ * limitations under the License. * * - * PHP Version 5 + * PHP Version 7 * * @file CAS/OutOfSequenceBeforeAuthenticationCallException.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeClientException.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeClientException.php index f1ea7e2447e..6c2c39c5878 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeClientException.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeClientException.php @@ -18,7 +18,7 @@ * limitations under the License. * * - * PHP Version 5 + * PHP Version 7 * * @file CAS/OutOfSequenceBeforeClientException.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeProxyException.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeProxyException.php index 8038542ed14..79915552182 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeProxyException.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceBeforeProxyException.php @@ -18,7 +18,7 @@ * limitations under the License. * * - * PHP Version 5 + * PHP Version 7 * * @file CAS/OutOfSequenceBeforeProxyException.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceException.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceException.php index d101811b60d..d6f7d88fc16 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceException.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/OutOfSequenceException.php @@ -18,7 +18,7 @@ * limitations under the License. * * - * PHP Version 5 + * PHP Version 7 * * @file CAS/OutOfSequenceException.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/AbstractStorage.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/AbstractStorage.php index 0f34711189b..a93568d60d8 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/AbstractStorage.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/AbstractStorage.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/PGTStorage/AbstractStorage.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/Db.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/Db.php index 383d11dc72b..2efe5a3e85b 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/Db.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/Db.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/PGTStorage/Db.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/File.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/File.php index 6504ec59900..fbacd3b7d21 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/File.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/PGTStorage/File.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/PGTStorage/AbstractStorage.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService.php index d70ca9c128c..2673ee955fd 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxiedService.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Abstract.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Abstract.php index fade9e70b72..0801c723bd8 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Abstract.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Abstract.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxiedService/Abstract.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Exception.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Exception.php index 5a1e69622ab..0f87413dd91 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Exception.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Exception.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxiedService/Exception.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http.php index 7c9824fabc1..4240b061ae6 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxiedService/Http.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Abstract.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Abstract.php index 61abfd84f4f..8d55edd502b 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Abstract.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Abstract.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxiedService/Http/Abstract.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Get.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Get.php index 78e35de16f1..a459d55ae97 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Get.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Get.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxiedService/Http/Get.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Post.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Post.php index 7d4ecd3c030..344c4398782 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Post.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Http/Post.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxiedService/Http/Post.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Imap.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Imap.php index 385aae73b31..c4b47401dd7 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Imap.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Imap.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxiedService/Imap.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Testable.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Testable.php index 51f07676276..3ce44fd16c1 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Testable.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxiedService/Testable.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxiedService/Testabel.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain.php index 2594d141e51..e200724cef4 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxyChain.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/AllowedList.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/AllowedList.php index cafd0e743a1..988ddbb3c35 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/AllowedList.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/AllowedList.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxyChain/AllowedList.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Any.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Any.php index 0cd92f74e96..fe18c5fbf15 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Any.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Any.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxyChain/Any.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Interface.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Interface.php index d247115db3a..b1d6881747d 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Interface.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Interface.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxyChain/Interface.php * @category Authentication @@ -50,4 +50,4 @@ interface CAS_ProxyChain_Interface */ public function matches(array $list); -} \ No newline at end of file +} diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Trusted.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Trusted.php index 7fa6129677a..e67d70852a5 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Trusted.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyChain/Trusted.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/ProxyChain/Trusted.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyTicketException.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyTicketException.php index 723304666dc..2f825b421c2 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyTicketException.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/ProxyTicketException.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @class CAS/ProxyTicketException.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/AbstractRequest.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/AbstractRequest.php index 130024bf157..4f9013ee2cc 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/AbstractRequest.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/AbstractRequest.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Request/AbstractRequest.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/CurlMultiRequest.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/CurlMultiRequest.php index 919c9561d13..850f6f0e4a6 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/CurlMultiRequest.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/CurlMultiRequest.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Request/AbstractRequest.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/CurlRequest.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/CurlRequest.php index c8b0933d00d..3eaa0d3c16b 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/CurlRequest.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/CurlRequest.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Request/CurlRequest.php * @category Authentication @@ -106,14 +106,7 @@ implements CAS_Request_RequestInterface *********************************************************/ $ch = curl_init($this->url); - if (version_compare(PHP_VERSION, '5.1.3', '>=')) { - //only avaible in php5 - curl_setopt_array($ch, $this->_curlOptions); - } else { - foreach ($this->_curlOptions as $key => $value) { - curl_setopt($ch, $key, $value); - } - } + curl_setopt_array($ch, $this->_curlOptions); /********************************************************* * Set SSL configuration diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/Exception.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/Exception.php index 14ff3c6b0df..dd5a2a55a5f 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/Exception.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/Exception.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Request/Exception.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/MultiRequestInterface.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/MultiRequestInterface.php index f3298274dbd..41002c7776c 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/MultiRequestInterface.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/MultiRequestInterface.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Request/MultiRequestInterface.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/RequestInterface.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/RequestInterface.php index cc11ba43d9c..b8e8772e938 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/RequestInterface.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Request/RequestInterface.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Request/RequestInterface.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Session/PhpSession.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Session/PhpSession.php index afbd5e2935a..031cbbc70f4 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Session/PhpSession.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/Session/PhpSession.php @@ -18,7 +18,7 @@ * limitations under the License. * * - * PHP Version 5 + * PHP Version 7 * * @file CAS/Session/PhpSession.php * @category Authentication diff --git a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/TypeMismatchException.php b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/TypeMismatchException.php index 4a13c2df45f..72bdc87a170 100644 --- a/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/TypeMismatchException.php +++ b/auth/cas/CAS/vendor/apereo/phpcas/source/CAS/TypeMismatchException.php @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * PHP Version 5 + * PHP Version 7 * * @file CAS/InvalidArgumentException.php * @category Authentication diff --git a/auth/cas/CAS/vendor/autoload.php b/auth/cas/CAS/vendor/autoload.php index 2840ee31c2f..214a46edd6b 100644 --- a/auth/cas/CAS/vendor/autoload.php +++ b/auth/cas/CAS/vendor/autoload.php @@ -2,6 +2,11 @@ // autoload.php @generated by Composer +if (PHP_VERSION_ID < 50600) { + echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; + exit(1); +} + require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitad79bd4bf22603c3738880e9bc6fc25d::getLoader(); +return ComposerAutoloaderInit6a071fded0009b95f2f6be5f548a3fa0::getLoader(); diff --git a/auth/cas/CAS/vendor/composer/InstalledVersions.php b/auth/cas/CAS/vendor/composer/InstalledVersions.php index d50e0c9fcc4..c6b54af7ba2 100644 --- a/auth/cas/CAS/vendor/composer/InstalledVersions.php +++ b/auth/cas/CAS/vendor/composer/InstalledVersions.php @@ -21,12 +21,14 @@ use Composer\Semver\VersionParser; * See also https://getcomposer.org/doc/07-runtime.md#installed-versions * * To require its presence, you can require `composer-runtime-api ^2.0` + * + * @final */ class InstalledVersions { /** * @var mixed[]|null - * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array}|array{}|null + * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array}|array{}|null */ private static $installed; @@ -37,7 +39,7 @@ class InstalledVersions /** * @var array[] - * @psalm-var array}> + * @psalm-var array}> */ private static $installedByVendor = array(); @@ -241,7 +243,7 @@ class InstalledVersions /** * @return array - * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string} + * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} */ public static function getRootPackage() { @@ -255,7 +257,7 @@ class InstalledVersions * * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. * @return array[] - * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array} + * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} */ public static function getRawData() { @@ -278,7 +280,7 @@ class InstalledVersions * Returns the raw data of all installed.php which are currently loaded for custom implementations * * @return array[] - * @psalm-return list}> + * @psalm-return list}> */ public static function getAllRawData() { @@ -301,7 +303,7 @@ class InstalledVersions * @param array[] $data A vendor/composer/installed.php data set * @return void * - * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array} $data + * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $data */ public static function reload($data) { @@ -311,7 +313,7 @@ class InstalledVersions /** * @return array[] - * @psalm-return list}> + * @psalm-return list}> */ private static function getInstalled() { diff --git a/auth/cas/CAS/vendor/composer/autoload_classmap.php b/auth/cas/CAS/vendor/composer/autoload_classmap.php index a3b0345febc..909f325bae6 100644 --- a/auth/cas/CAS/vendor/composer/autoload_classmap.php +++ b/auth/cas/CAS/vendor/composer/autoload_classmap.php @@ -2,7 +2,7 @@ // autoload_classmap.php @generated by Composer -$vendorDir = dirname(dirname(__FILE__)); +$vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( diff --git a/auth/cas/CAS/vendor/composer/autoload_namespaces.php b/auth/cas/CAS/vendor/composer/autoload_namespaces.php index b7fc0125dbc..15a2ff3ad6d 100644 --- a/auth/cas/CAS/vendor/composer/autoload_namespaces.php +++ b/auth/cas/CAS/vendor/composer/autoload_namespaces.php @@ -2,7 +2,7 @@ // autoload_namespaces.php @generated by Composer -$vendorDir = dirname(dirname(__FILE__)); +$vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( diff --git a/auth/cas/CAS/vendor/composer/autoload_psr4.php b/auth/cas/CAS/vendor/composer/autoload_psr4.php index d15f8ff0fd9..6670ffa45de 100644 --- a/auth/cas/CAS/vendor/composer/autoload_psr4.php +++ b/auth/cas/CAS/vendor/composer/autoload_psr4.php @@ -2,7 +2,7 @@ // autoload_psr4.php @generated by Composer -$vendorDir = dirname(dirname(__FILE__)); +$vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( diff --git a/auth/cas/CAS/vendor/composer/autoload_real.php b/auth/cas/CAS/vendor/composer/autoload_real.php index 4823b938a7f..f27db776f99 100644 --- a/auth/cas/CAS/vendor/composer/autoload_real.php +++ b/auth/cas/CAS/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitad79bd4bf22603c3738880e9bc6fc25d +class ComposerAutoloaderInit6a071fded0009b95f2f6be5f548a3fa0 { private static $loader; @@ -24,31 +24,12 @@ class ComposerAutoloaderInitad79bd4bf22603c3738880e9bc6fc25d require __DIR__ . '/platform_check.php'; - spl_autoload_register(array('ComposerAutoloaderInitad79bd4bf22603c3738880e9bc6fc25d', 'loadClassLoader'), true, true); - self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); - spl_autoload_unregister(array('ComposerAutoloaderInitad79bd4bf22603c3738880e9bc6fc25d', 'loadClassLoader')); + spl_autoload_register(array('ComposerAutoloaderInit6a071fded0009b95f2f6be5f548a3fa0', 'loadClassLoader'), true, true); + self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); + spl_autoload_unregister(array('ComposerAutoloaderInit6a071fded0009b95f2f6be5f548a3fa0', 'loadClassLoader')); - $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); - if ($useStaticLoader) { - require __DIR__ . '/autoload_static.php'; - - call_user_func(\Composer\Autoload\ComposerStaticInitad79bd4bf22603c3738880e9bc6fc25d::getInitializer($loader)); - } else { - $map = require __DIR__ . '/autoload_namespaces.php'; - foreach ($map as $namespace => $path) { - $loader->set($namespace, $path); - } - - $map = require __DIR__ . '/autoload_psr4.php'; - foreach ($map as $namespace => $path) { - $loader->setPsr4($namespace, $path); - } - - $classMap = require __DIR__ . '/autoload_classmap.php'; - if ($classMap) { - $loader->addClassMap($classMap); - } - } + require __DIR__ . '/autoload_static.php'; + call_user_func(\Composer\Autoload\ComposerStaticInit6a071fded0009b95f2f6be5f548a3fa0::getInitializer($loader)); $loader->register(true); diff --git a/auth/cas/CAS/vendor/composer/autoload_static.php b/auth/cas/CAS/vendor/composer/autoload_static.php index 60efa4a209d..a3dcd3b2d91 100644 --- a/auth/cas/CAS/vendor/composer/autoload_static.php +++ b/auth/cas/CAS/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitad79bd4bf22603c3738880e9bc6fc25d +class ComposerStaticInit6a071fded0009b95f2f6be5f548a3fa0 { public static $prefixLengthsPsr4 = array ( 'P' => @@ -75,9 +75,9 @@ class ComposerStaticInitad79bd4bf22603c3738880e9bc6fc25d public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitad79bd4bf22603c3738880e9bc6fc25d::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitad79bd4bf22603c3738880e9bc6fc25d::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitad79bd4bf22603c3738880e9bc6fc25d::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit6a071fded0009b95f2f6be5f548a3fa0::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit6a071fded0009b95f2f6be5f548a3fa0::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit6a071fded0009b95f2f6be5f548a3fa0::$classMap; }, null, ClassLoader::class); } diff --git a/auth/cas/CAS/vendor/composer/installed.json b/auth/cas/CAS/vendor/composer/installed.json index de2b046898b..1b229d2cfd8 100644 --- a/auth/cas/CAS/vendor/composer/installed.json +++ b/auth/cas/CAS/vendor/composer/installed.json @@ -2,29 +2,31 @@ "packages": [ { "name": "apereo/phpcas", - "version": "1.4.0", - "version_normalized": "1.4.0.0", + "version": "1.5.0", + "version_normalized": "1.5.0.0", "source": { "type": "git", "url": "https://github.com/apereo/phpCAS.git", - "reference": "ea27d122c4c7114006b33d15668c90f1904d53df" + "reference": "d6f5797fb568726f34c8e48741776d81e4a2646b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/apereo/phpCAS/zipball/ea27d122c4c7114006b33d15668c90f1904d53df", - "reference": "ea27d122c4c7114006b33d15668c90f1904d53df", + "url": "https://api.github.com/repos/apereo/phpCAS/zipball/d6f5797fb568726f34c8e48741776d81e4a2646b", + "reference": "d6f5797fb568726f34c8e48741776d81e4a2646b", "shasum": "" }, "require": { "ext-curl": "*", - "php": ">=7.0.0", - "psr/log": "^1.0.0" + "ext-dom": "*", + "php": ">=7.1.0", + "psr/log": "^1.0 || ^2.0 || ^3.0" }, "require-dev": { - "monolog/monolog": "^1.0.0", - "phpunit/phpunit": ">=4.8.35 <8" + "monolog/monolog": "^1.0.0 || ^2.0.0", + "phpstan/phpstan": "^1.5", + "phpunit/phpunit": ">=7.5" }, - "time": "2021-05-30T19:53:34+00:00", + "time": "2022-05-03T21:12:54+00:00", "type": "library", "extra": { "branch-alias": { @@ -65,7 +67,7 @@ ], "support": { "issues": "https://github.com/apereo/phpCAS/issues", - "source": "https://github.com/apereo/phpCAS/tree/1.4.0" + "source": "https://github.com/apereo/phpCAS/tree/1.5.0" }, "install-path": "../apereo/phpcas" }, diff --git a/auth/cas/CAS/vendor/composer/installed.php b/auth/cas/CAS/vendor/composer/installed.php index 3df1ec71635..4612ec56945 100644 --- a/auth/cas/CAS/vendor/composer/installed.php +++ b/auth/cas/CAS/vendor/composer/installed.php @@ -1,40 +1,40 @@ array( + 'name' => '__root__', 'pretty_version' => '1.0.0+no-version-set', 'version' => '1.0.0.0', + 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => NULL, - 'name' => '__root__', 'dev' => true, ), 'versions' => array( '__root__' => array( 'pretty_version' => '1.0.0+no-version-set', 'version' => '1.0.0.0', + 'reference' => NULL, 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => NULL, 'dev_requirement' => false, ), 'apereo/phpcas' => array( - 'pretty_version' => '1.4.0', - 'version' => '1.4.0.0', + 'pretty_version' => '1.5.0', + 'version' => '1.5.0.0', + 'reference' => 'd6f5797fb568726f34c8e48741776d81e4a2646b', 'type' => 'library', 'install_path' => __DIR__ . '/../apereo/phpcas', 'aliases' => array(), - 'reference' => 'ea27d122c4c7114006b33d15668c90f1904d53df', 'dev_requirement' => false, ), 'psr/log' => array( 'pretty_version' => '1.1.4', 'version' => '1.1.4.0', + 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), - 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'dev_requirement' => false, ), ), diff --git a/auth/cas/CAS/vendor/composer/platform_check.php b/auth/cas/CAS/vendor/composer/platform_check.php index f79e574be7b..6d3407dbb68 100644 --- a/auth/cas/CAS/vendor/composer/platform_check.php +++ b/auth/cas/CAS/vendor/composer/platform_check.php @@ -4,8 +4,8 @@ $issues = array(); -if (!(PHP_VERSION_ID >= 70000)) { - $issues[] = 'Your Composer dependencies require a PHP version ">= 7.0.0". You are running ' . PHP_VERSION . '.'; +if (!(PHP_VERSION_ID >= 70100)) { + $issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.0". You are running ' . PHP_VERSION . '.'; } if ($issues) {