Introduce PHP7 strict typing

This commit is contained in:
Diogo Cordeiro
2019-11-02 23:36:21 +00:00
parent 79239e8e2d
commit 57f33b4328
14 changed files with 586 additions and 547 deletions

View File

@@ -55,7 +55,7 @@ class XMPPHP_XMPPTest extends PHPUnit_Framework_TestCase
} catch (XMPPHP_Exception $e) {
return;
} catch (Exception $e) {
$this->fail('Unexpected Exception thrown: '.$e->getMessage());
$this->fail('Unexpected Exception thrown: ' . $e->getMessage());
}
$this->fail('Expected XMPPHP_Exception not thrown!');
@@ -74,7 +74,7 @@ class XMPPHP_XMPPTest extends PHPUnit_Framework_TestCase
} catch (XMPPHP_Exception $e) {
return;
} catch (Exception $e) {
$this->fail('Unexpected Exception thrown: '.$e->getMessage());
$this->fail('Unexpected Exception thrown: ' . $e->getMessage());
}
$this->fail('Expected XMPPHP_Exception not thrown!');