Release v3.7.3
Summary
This release fixes a critical Packagist publishing issue that prevented the package from updating, updates the generated AbraFlexi evidence data to version 2026.3.14, and includes several bug fixes and API improvements.
Breaking Changes
- Removed
RO::disconnect()method — Thedisconnect()method and the__destruct()destructor that called it have been removed from theROclass. CURL handle cleanup is now handled automatically by PHP. If your code calls$object->disconnect()directly, remove those calls. TheconnectionReset()method remains available.
Bug Fixes
- Fix
RW::parseError()crash on empty results — Fixed an "undefined array key 0" error inRW::parseError()when the AbraFlexi API response contains an emptyresultsarray. The method now checkscount($responseDecoded["results"]) > 0before accessing array elements. - Fix external ID lookup with null key —
RO::getExternalID()now checks that the$wantparameter is notnullbefore callingarray_key_exists(), preventing potential warnings. - Fix Packagist self-replace error — Removed the invalid
"replace": {"spojenet/flexibee": "self.version"}section fromcomposer.json. A package cannot set a replace on itself, which caused Packagist to reject all branches containing this directive.
AbraFlexi Data Updates
- Updated generated evidence data files (
EvidenceList.php,Actions.php,Formats.php,Relations.php) and allstatic/Properties.*.jsonfiles to match AbraFlexi API version 2026.3.14. - Updated evidence property definitions for:
atribut,castky-k-odpoctu,cislo-baliku,doporuceni,neuhrazene-po-splatnosti,neuhrazene-po-splatnosti-2,prikaz-k-inkasu-polozka,prikaz-k-uhrade-polozka,priloha,prodejka-platba,splatkovy-kalendar,udalost,vyrobni-cislo,zaloha-k-odpoctu.
Packaging & Metadata
- Added AppStream metainfo XML file (
io.github.spoje_net.php_spojenet_abraflexi.metainfo.xml) for Linux distribution integration. - Added SVG icon (
php-spojenet-abraflexi.svg) and updated Debian install scripts to include metainfo and icon files. - Fixed AppStream component type from
addontogenericso thatappstream-generatorcorrectly exports the icon. - Added
debian/libversion.phpfor library versioning support using Composer.
Documentation
- Updated
@paramannotation ofRO::getColumnsFromAbraFlexi()to correctly reflect that$conditionsacceptsarray<int|string, mixed>. - Updated README files (Czech and English).
Dependency Updates
- Updated
friendsofphp/php-cs-fixerrequirement to^3.94. - Updated
ergebnis/php-cs-fixer-configrequirement to^6.60.
Upgrade Guide
- If you call
$object->disconnect()— Simply remove the call. PHP handles CURL cleanup automatically. Use$object->connectionReset()if you need to explicitly reset the connection. - Run
composer update spojenet/flexibeeto update. - No other code changes are required.