Releases: kununu/data-fixtures
Releases · kununu/data-fixtures
Support only PHP 8.3
BREAKING CHANGES
- Only support PHP 8.3
- Make classes read-only when possible- Add types to constants - Upgrade PHPUnit to v11.3
- Use static versions of asserts and expectations of invocations
- Change CI pipeline to use PHP 8.3
- Add types to constants - Upgrade PHPUnit to v11.3
- Changes to
AbstractFileLoaderFixture
:- Add
LoadMode
enumeration to define load modes of files - Change
getLoadMode
to return aLoadMode
enumeration value instead of a string - Change derived classes to conform with new
getLoadMode
definition
- Add
- Changes to
ConnectionPurger
:- Add
PurgeMode
enumeration to define purge modes - Remove
setPurgeMode
andgetPurgeMode
- The purge mode must be set in the constuctor with a
PurgeMode
enumeration value (which defaults toPurgeMode::Delete
)
- The purge mode must be set in the constuctor with a
- Remove
InvalidConnectionPurgeModeException
- Add
- Update documentation
Make even more properties read-only
Changes
- Following the update to >= PHP 8.1 only, make even more properties read-only
- Update ramsey/composer-install to v3 on github actions
Fix building error message in ElasticsearchFileFixture
- Fix the error message that is sent with the
LoadFailedException
onElasticsearchFileFixture
if$throwOnFail
parameter is true and errors occur during the bulk insertion to Elasticsearch.
Drop support for PHP 8.0 and doctrine/dbal 2.x
BREAKING CHANGES
- Remove support for PHP 8.0
- Upgrade to only use doctrine/dbal:^3.8
- Remove code supporting version 2.x of doctrine/dbal
- Use Symfony 6.4 components for development
- Rename classes/interfaces that had "ElasticSearch" to "Elasticsearch"
ElasticsearchFixtureInterface::load
now has an extra optional parameter$throwOnFail
- Upgrade to PHPUnit 10.5
- Fix tests
- Update documentation
Update continuous integration components
What's Changed
No code changes
Introduce body validator for HttpClient
What's Changed
- Introduce body validator for HttpClient by @hugo-goncalves-kununu in #37
Full Changelog: v10.1.0...v10.2.0
Use database platform instead of driver instance on DBAL >= 3.x
What's Changed
- Use database platform instead of driver instance so that the correct foreign key checks statement is determined even if driver is wrapped in a middleware (by @samuel-nogueira-kununu in #35)
New Contributors
- @samuel-nogueira-kununu made their first contribution in #35
Full Changelog: v10.0.0...v10.1.0
Drop support for PHP 7.x
Breaking changes
- Drop support for PHP 7.x
- Change
InitializableFixtureInterface
by typing the$args
parameter ofinitializeFixture
method tomixed
- Change
LoaderInterface
by typing the$args
parameter ofregisterInitializableFixture
method tomixed
- Add
mixed
as return type ofElasticSearchFixtureTrait::getDocumentIdForBulkIndexation
Fix Elasticsearch fixtures doc type to support older versions of Elasticsearch in bulk insert mode
- Fix Elasticsearch fixtures doc type to support older versions of Elasticsearch in bulk insert mode
Add prepareDocument method to Elasticsearch fixtures
- Add
prepareDocument
method to Elasticsearch fixtures to allow to change document before sending it to Elasticsearch