Skip to content

Support only PHP 8.3

Compare
Choose a tag to compare
@hugo-goncalves-kununu hugo-goncalves-kununu released this 18 Sep 10:06
b21210c

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
    • Bump to use kununu/data-fixtures 12.0
  • Changes on AbstractTestCase and children (FixturesAwareTestCase and WebTestCase):
    • getFixturesContainer now has the Symfony ContainerInterface and not PSR interface as its return type
    • Add getServiceFromContainer
    • Add getParameterFromContainer
  • Add FixturesContainerGetterTrait to help getting common services from the test container:
    • getConnection to get a Doctrine DBAL connection
    • getCachePool to get a CacheItemPoolInterface
    • getElasticsearchClient to get an Elasticsearch client
    • getHttpClient to get a Symfony Http client
  • Update documentation