PHP8 compatibility

This commit is contained in:
sparkyx 2021-12-22 17:59:37 +01:00
parent 947c882056
commit ab13a65796
68 changed files with 287 additions and 221 deletions

View file

@ -41,7 +41,7 @@ class DatabaseCoreTest extends TestCase
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
protected function setUp():void
{
$noalyss_user = (defined("noalyss_user")) ? noalyss_user : phpcompta_user;
$password = (defined("noalyss_password")) ? noalyss_password : phpcompta_password;
@ -54,7 +54,7 @@ class DatabaseCoreTest extends TestCase
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
protected function tearDown():void
{
}

View file

@ -39,7 +39,7 @@ class Noalyss_SQLTest extends TestCase
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
protected function setUp():void
{
global $g_connection;
$this->object=new Poste_analytique_SQL($g_connection);
@ -66,7 +66,7 @@ VALUES(1, 'ACTIVITE', 'Activité commerciale Alchimerys sprl');
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
protected function tearDown():void
{
}