Skip to content

v9.3.0

Compare
Choose a tag to compare
@MarcinOrlowski MarcinOrlowski released this 21 Jun 23:05
· 135 commits to master since this release
cf7289a
  • Added data_always_object config option that, when enabled enforces response data node to always be JSON object (for NULL it will return empty object {}).
  • Updated project logo
  • Improved code quality (fully pass on PHPStan's strict mode)
  • Updated code style to match standard ruleset.
  • Fixed floats being rejected as direct primitive payload.
  • Fixed Converter unit tests for primitives-as-payload.
  • Fixed ResponseBuilderProvider throwing incorrect Exception in case of invalid config file.
  • Added Validator::assertIsObjectOrExistingClass() method.
  • Validator::assertIsInt() throws now NotIntegerException as expected.
  • Corrected Validator class tests to check agains specific exceptions thrown, not base class.
  • Improved error handling in JsonSerializableConverter
  • Switched Composer's autoload to follow psr-4 instead of plain classmap (thanks to Viktor Szépe).
  • Added TestingHelpers::getResponseContent(), TestingHelpers::langGet() to satisfy static analyzers.
  • Updated and corrected PHPDocs (incl. some type hints).
  • Added missing type hint to success().
  • Added strict type header to classes.
  • Removed dev block from default composer.json. See .config/README.md for details.
  • Updated documentation.