Skip to content

Commit 5669885

Browse files
committed
Drop the disconnect method of the RO class
Function curl_close() is deprecated since PHP 8.5, and it has no effect since PHP 8.0.
1 parent 543b0fb commit 5669885

2 files changed

Lines changed: 0 additions & 33 deletions

File tree

src/AbraFlexi/RO.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,6 @@ public function __construct($init = null, $options = [])
368368
$this->setObjectName(\array_key_exists('objectName', $options) ? $options['objectName'] : null);
369369
}
370370

371-
/**
372-
* Disconnect CURL before pass away.
373-
*/
374-
public function __destruct()
375-
{
376-
$this->disconnect();
377-
}
378-
379371
/**
380372
* Obtain record/object identificator code: or id:
381373
*
@@ -1489,24 +1481,11 @@ public function setAction(string $action)
14891481
return $result;
14901482
}
14911483

1492-
/**
1493-
* Disconnect from AbraFlexi.
1494-
*/
1495-
public function disconnect(): void
1496-
{
1497-
if ((null === $this->curl) === false) {
1498-
curl_close($this->curl);
1499-
}
1500-
1501-
$this->curl = null;
1502-
}
1503-
15041484
/**
15051485
* Reset Curl Connection.
15061486
*/
15071487
public function connectionReset(): void
15081488
{
1509-
$this->disconnect();
15101489
$this->curlInit();
15111490
}
15121491

tests/src/AbraFlexi/ROTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -532,18 +532,6 @@ protected function tearDown(): void
532532
// }
533533
//
534534
// /**
535-
// * @covers \AbraFlexi\RO::disconnect
536-
// *
537-
// * @todo Implement testdisconnect().
538-
// */
539-
// public function testdisconnect(): void
540-
// {
541-
// $this->assertEquals('', $this->object->disconnect());
542-
// // Remove the following lines when you implement this test.
543-
// $this->markTestIncomplete('This test has not been implemented yet.');
544-
// }
545-
//
546-
// /**
547535
// * @covers \AbraFlexi\RO::connectionReset
548536
// *
549537
// * @todo Implement testconnectionReset().

0 commit comments

Comments
 (0)