@@ -231,7 +231,7 @@ public function setLang($lang)
231
231
$ obj = new $ lang ();
232
232
if (! ($ obj instanceof LanguageInterface)) {
233
233
throw new InvalidArgumentException (
234
- '$className must implement the ' . LanguageInterface::class
234
+ '$className must implement the \phpCAS\CAS\Languages\ LanguageInterface '
235
235
);
236
236
}
237
237
$ this ->_lang = $ lang ;
@@ -631,7 +631,7 @@ public function setExtraCurlOption($key, $value)
631
631
* By default CurlRequest is used, but this may be overridden to
632
632
* supply alternate request mechanisms for testing.
633
633
*/
634
- private $ _requestImplementation = CurlRequest::class ;
634
+ private $ _requestImplementation = ' \phpCAS\CAS\Request\ CurlRequest' ;
635
635
636
636
/**
637
637
* Override the default implementation used to make web requests in readUrl().
@@ -1975,7 +1975,7 @@ public function setCasServerCACert($cert, $validate_cn)
1975
1975
if (gettype ($ validate_cn ) != 'boolean ' ) {
1976
1976
throw new TypeMismatchException ($ validate_cn , '$validate_cn ' , 'boolean ' );
1977
1977
}
1978
- if (! file_exists ($ cert ) && $ this ->_requestImplementation !== DummyRequest::class ) {
1978
+ if (! file_exists ($ cert ) && $ this ->_requestImplementation !== ' \phpCAS\CAS\TestHarness\ DummyRequest' ) {
1979
1979
throw new InvalidArgumentException ('Certificate file does not exist ' .$ this ->_requestImplementation );
1980
1980
}
1981
1981
$ this ->_cas_server_ca_cert = $ cert ;
@@ -2581,7 +2581,7 @@ public function setPGTStorage(AbstractStorage $storage)
2581
2581
2582
2582
// check to make sure a valid storage object was specified
2583
2583
if (! ($ storage instanceof AbstractStorage)) {
2584
- throw new TypeMismatchException ($ storage , '$storage ' , AbstractStorage::class. ' object ' );
2584
+ throw new TypeMismatchException ($ storage , '$storage ' , ' \phpCAS\CAS\PGTStorage\AbstractStorage object ' );
2585
2585
}
2586
2586
2587
2587
// store the PGTStorage object
@@ -4005,7 +4005,7 @@ private function _rebroadcast($type)
4005
4005
if (! empty ($ ip )) {
4006
4006
$ dns = gethostbyaddr ($ ip );
4007
4007
}
4008
- $ multiClassName = CurlMultiRequest::class ;
4008
+ $ multiClassName = ' \phpCAS\CAS\Request\ CurlMultiRequest' ;
4009
4009
$ multiRequest = new $ multiClassName ();
4010
4010
4011
4011
for ($ i = 0 ; $ i < sizeof ($ this ->_rebroadcast_nodes ); $ i ++) {
0 commit comments