Skip to content

v3.7.3 - Packagist Fix & AbraFlexi 2026.3 Data Update

Latest

Choose a tag to compare

@Vitexus Vitexus released this 13 May 06:00

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 — The disconnect() method and the __destruct() destructor that called it have been removed from the RO class. CURL handle cleanup is now handled automatically by PHP. If your code calls $object->disconnect() directly, remove those calls. The connectionReset() method remains available.

Bug Fixes

  • Fix RW::parseError() crash on empty results — Fixed an "undefined array key 0" error in RW::parseError() when the AbraFlexi API response contains an empty results array. The method now checks count($responseDecoded["results"]) > 0 before accessing array elements.
  • Fix external ID lookup with null keyRO::getExternalID() now checks that the $want parameter is not null before calling array_key_exists(), preventing potential warnings.
  • Fix Packagist self-replace error — Removed the invalid "replace": {"spojenet/flexibee": "self.version"} section from composer.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 all static/Properties.*.json files 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 addon to generic so that appstream-generator correctly exports the icon.
  • Added debian/libversion.php for library versioning support using Composer.

Documentation

  • Updated @param annotation of RO::getColumnsFromAbraFlexi() to correctly reflect that $conditions accepts array<int|string, mixed>.
  • Updated README files (Czech and English).

Dependency Updates

  • Updated friendsofphp/php-cs-fixer requirement to ^3.94.
  • Updated ergebnis/php-cs-fixer-config requirement to ^6.60.

Upgrade Guide

  1. 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.
  2. Run composer update spojenet/flexibee to update.
  3. No other code changes are required.

Full Changelog

v3.7.2...v3.7.3