Skip to content

Harmonize setup with ibexa-behat-bundle - #8

Merged
hgiesenow merged 3 commits into
mainfrom
setup-improvements
Oct 28, 2026
Merged

hgiesenow merged 3 commits into
mainfrom
setup-improvements

Conversation

@hgiesenow

@hgiesenow hgiesenow commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Harmonizes the project setup with ibexa-behat-bundle.

CI

  • Tests and Static code analysis: matrix over PHP 8.3 / 8.4 / 8.5 × Ibexa 4.6 / 5.0 (uses the OSS packages ibexa/core + ibexa/admin-ui, so no COMPOSER_AUTH secret needed)
  • Code Style: php-cs-fixer 3.95 per PHP version (@Symfony + @Symfony:risky, src and tests)
  • Composer: composer validate
  • Docker: one image per PHP version (ghcr.io/elbformat/icon-bundle/php:<version>), built monthly, on manual dispatch, and when docker/ changes

Tooling

  • Makefile, compose.yaml, .php-cs-fixer.php, phpstan.dist.neon (now also covers tests/), phpunit.xml.dist
  • doc/development.md updated, doc/release.md added

composer.json

  • Requires PHP >=8.3; allows Ibexa ^4.6 | ^5.0 and symfony/finder ^7.4 (LTS versions only)
  • PHPStan 2
  • Tests autoloaded via autoload-dev with the correct Tests namespace
  • config.policy.advisories.ignore for guzzlehttp/guzzle and league/flysystem: Composer 2.10 otherwise refuses to install Ibexa 4.6/5.0 OSS. Root-only setting, does not affect consumers.

Code

  • Fixed PHPStan findings so both Ibexa versions pass (config tree without untyped end() chains, getSetList() via array_combine, targeted ignore for FieldData::$fieldDefinition which only has a getter in Ibexa 5)
  • Applied code style
  • Fix: the short syntax from the README (iconset1: [clock, house]) was rejected by the config; it is now accepted. Covered by a new ConfigurationTest.

Notes

  • The CI images are built by the docker workflow on the first push of this branch; checks that started before the images existed need a re-run. The GHCR package may need to be made public / linked to the repo.
  • Verified locally: phpunit (11 tests) + phpstan pass on all 6 PHP × Ibexa combinations, cs-fixer and composer validate clean.

🤖 Generated with Claude Code

Hannes Giesenow and others added 3 commits October 28, 2026 15:47
- GitHub Actions: phpunit and phpstan matrix (PHP 8.3/8.4/8.5 x Ibexa 4.6/5.0),
  php-cs-fixer per PHP version, composer validate, per-version docker images
- Makefile, compose.yaml, .php-cs-fixer.php, *.dist configs for phpstan/phpunit
- Require PHP >= 8.3, allow Ibexa 5.0 and Symfony 7
- Ignore advisory blocking for guzzle/flysystem (needed to install Ibexa OSS)
- Fix phpstan findings for both Ibexa versions and apply code style
- Accept short syntax for fixed icon sets, as documented in README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hgiesenow
hgiesenow merged commit 8e4249d into main Oct 28, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant