Skip to content

Releases: 123inkt/accessorpair-constraint

v2.1.1

04 Aug 10:25
32ea822

Choose a tag to compare

What's Changed

  • Added phpstan and phpcs by @bram123 in #17
  • Updated phpdocumentor/type-resolver to 1.3 by @bram123 in #18
  • Added composer "check" script to github actions by @bram123 in #19
  • Fix accessorpairs when the setter is private/protected (#20) by @bram123 in #21

Full Changelog: v2.1.0...v2.1.1

v2.0.2

04 Aug 10:23
2893b68

Choose a tag to compare

What's Changed

  • Fix accessorpairs when the setter is private/protected by @bram123 in #20

Full Changelog: v2.0.1...v2.0.2

v2.1.0: PHP version upgrade

22 Jul 11:05
cacaceb

Choose a tag to compare

  • Removed support for php 7.0 and php 7.1

  • Removed support for phpunit 6.5 and 7.5

  • Added support for php7.4

  • Added support for phpunit 8.5 + 9.2

Fix the syntax: array<type, type>

12 Jun 14:44
603c671

Choose a tag to compare

Fixes the syntax: array<type, type>

  • Added support for type-resolver v1.0 which includes support for this syntax
  • Removed the spaces before sending data to the library to support type-resolver v0.5

v2.0.0: Merge pull request #12 from 123inkt/add-gitattributes-file

17 May 19:28
7513a14

Choose a tag to compare

  • New ConstraintConfig class to setup the constraint
    Making it possible to turn off the accessorpair/constructorpair tests if those are unwanted.

Backward Incompatible Changes:
AccessorPairAsserter::assertAccessorPairs

  • The parameter $testPropertyDefaults = false is now replaced with ConstraintConfig = null. The default values have the same effect as before
    -- If the value true was passed before, a ConstraintConfig instance with $propertyDefaultCheck=true should be passed instead
    -- If the value false was passed in order to set the $message parameter, null should be passed instead for the default config

AccessorPairConstraint::__construct

  • The parameter $testPropertyDefaults is replaced with ConstraintConfig
    -- If the value true was passed before, a ConstraintConfig instance with $propertyDefaultCheck=true should be passed instead
    -- If the value false was passed before, a default ConstraintConfig instance should be passed instead

v1.1.2

28 Apr 08:08
3dec009

Choose a tag to compare

What's Changed

  • Fixes issue where the constructor of the dataclass isn't always called by @bram123 in #9

Full Changelog: v1.1.1...v1.1.2

v1.1.1: Add support for getter to return null (#7)

27 Apr 17:19
1c9964d

Choose a tag to compare

What's Changed

  • Added PHP 7.3 and PHPUnit 7.5 support by @bram123 in #6
  • Add support for getter to return null by @bram123 in #7
  • Added some extra UTs + code/phpdoc fixes based on PHPStan and Infection by @bram123 in #8

Full Changelog: v1.1.0...v1.1.1

v1.1.0

13 Apr 19:17
9a96eab

Choose a tag to compare

What's Changed

Full Changelog: v1.0.2...v1.1.0

v1.0.2

05 Apr 13:33
305e13d

Choose a tag to compare

What's Changed

  • Fix instanceProvider with constructor requirements by @bram123 in #3

Full Changelog: v1.0.1...v1.0.2

v1.0.1

03 Apr 12:12
6177e98

Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.1