diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php index 765e857ab532..d0b51907921d 100644 --- a/settings/Controller/CheckSetupController.php +++ b/settings/Controller/CheckSetupController.php @@ -37,7 +37,6 @@ use OCP\IConfig; use OCP\IL10N; use OCP\IRequest; -use OC_Util; use OCP\IURLGenerator; /** @@ -253,7 +252,7 @@ public function rescanFailedIntegrityCheck() { /** * @NoCSRFRequired - * @return DataResponse + * @return DataResponse | DataDisplayResponse */ public function getFailedIntegrityCheckFiles() { if(!$this->checker->isCodeCheckEnforced()) { @@ -339,8 +338,9 @@ public function check() { protected function isEndOfLive() { $eol = false; - //PHP 5.4 is EOL on 14 Sep 2015 - if (version_compare(PHP_VERSION, '5.5.0') === -1) { + // PHP 5.4 is EOL on 14 Sep 2015 + // PHP 5.5 is EOL on 21 Jul 2016 + if (version_compare(PHP_VERSION, '5.6.0') === -1) { $eol = true; return $eol; } diff --git a/tests/Settings/Controller/CheckSetupControllerTest.php b/tests/Settings/Controller/CheckSetupControllerTest.php index 6dbeb01a62ac..f6938cff13d8 100644 --- a/tests/Settings/Controller/CheckSetupControllerTest.php +++ b/tests/Settings/Controller/CheckSetupControllerTest.php @@ -21,6 +21,7 @@ namespace Tests\Settings\Controller; +use GuzzleHttp\Exception\ClientException; use OC\Settings\Controller\CheckSetupController; use OCP\AppFramework\Http; use OCP\AppFramework\Http\DataDisplayResponse; @@ -452,6 +453,7 @@ public function testIsBuggyNss400() { ->will($this->returnValue(['ssl_version' => 'NSS/1.0.2b'])); $client = $this->getMockBuilder('\OCP\Http\Client\IClient') ->disableOriginalConstructor()->getMock(); + /** @var ClientException | \PHPUnit_Framework_MockObject_MockObject $exception */ $exception = $this->getMockBuilder('\GuzzleHttp\Exception\ClientException') ->disableOriginalConstructor()->getMock(); $response = $this->getMockBuilder('\GuzzleHttp\Message\ResponseInterface') @@ -486,6 +488,7 @@ public function testIsBuggyNss200() { ->will($this->returnValue(['ssl_version' => 'NSS/1.0.2b'])); $client = $this->getMockBuilder('\OCP\Http\Client\IClient') ->disableOriginalConstructor()->getMock(); + /** @var ClientException | \PHPUnit_Framework_MockObject_MockObject $exception */ $exception = $this->getMockBuilder('\GuzzleHttp\Exception\ClientException') ->disableOriginalConstructor()->getMock(); $response = $this->getMockBuilder('\GuzzleHttp\Message\ResponseInterface')