Skip to content

v2.0.6

Compare
Choose a tag to compare
@josantonius josantonius released this 05 Sep 22:30
· 24 commits to main since this release

What's Changed

  • pre-release/v2.0.6 in #21
  • Release/v2.0.6 in #22

Added

  • Josantonius\Json\Json->filepath() method.
  • Josantonius\Json\Json->exists() method.

Changed

  • The file is no longer created if it does not exist when the instance is created.
  • The $content parameter of the set method is now optional and contains an empty array by default.

Deleted

  • Josantonius\Json\Exceptions\CreateDirectoryException class.
  • Josantonius\Json\Tests\ExistsMethodTest class.
  • Josantonius\Json\Tests\GetFilepathMethodTest class.
  • Josantonius\Json\Json->createFileIfNotExists() method.

Refactor

  • The notation type in the test function names has been changed from camel to snake case for readability.
  • Functions were added to document the methods and avoid confusion.
  • Disabled the ´CamelCaseMethodName´ rule in ´phpmd.xml´ to avoid warnings about function names in tests.
  • The alignment of the asterisks in the comments has been fixed.

Updated

  • Tests.

Full Changelog: v2.0.5...v2.0.6