v2.0.6
What's Changed
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 theset
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