Remove the disconnect method of the RO class#97
Conversation
Filter conditions don't have a string key. For example here: https://github.com/Spoje-NET/php-abraflexi/blob/main/src/AbraFlexi/RO.php#L2122
Function curl_close() is deprecated since PHP 8.5, and it has no effect since PHP 8.0.
📝 WalkthroughWalkthroughRemoved automatic cURL teardown by deleting Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can use your project's PHP CodeSniffer (phpcs) configuration to improve the quality of PHP code reviews.Add a |
…al keys array In PHP 8.5 passing null as the key parameter for array_key_exists() is deprecated.
The @param annotation of the getColumnsFromAbraFlexi method: Filter conditions don't have a string key. For example here https://github.com/Spoje-NET/php-abraflexi/blob/main/src/AbraFlexi/RO.php#L2122, a combination of string and integer keys is used.
Function curl_close() is deprecated since PHP 8.5, and it has no effect since PHP 8.0. In composer.json we require PHP version "^8.1", so I think we can remove the curl_close call.
Check the external ID key parameter before searching it in the external keys array in the RO::getExternalID method. In PHP 8.5 passing null as the key parameter for array_key_exists() is deprecated.
Summary by CodeRabbit
Refactor
Improvements
Tests