Skip to content

Releases: Level-2/Dice

4.0.4

17 Jan 23:30
e04c98d
Compare
Choose a tag to compare

Bugfixes:

#201 - shareInstances not propagating correctly
#195 - some parameters getting counted twice

PHP 8 support

20 Apr 14:07
Compare
Choose a tag to compare
  • Removes call to deprecated ReflectionType::getClass()
  • Supports nullable types

4.0.2

28 Jan 13:54
Compare
Choose a tag to compare
  • Updated reflection to avoid a deprecation notice in PHP 7.4
  • Better scalar matching logic when argument data is coming from multiple sources e.g. $args passed directly to $dice->create() and constructParams.

4.0.1

13 Jun 15:09
Compare
Choose a tag to compare
  • Fixed issues with addRules
  • Better immutability support by clearing internal caches
  • Fixed bug #165 where wrong instance would sometimes be injected when using CHAIN_CALL
  • #167 - shared instances are also used when calling methods with call

4.0. release

15 Nov 18:11
Compare
Choose a tag to compare

This release implements immutability, Dice no longer acts in a mutable manner which makes it more predictable when being passed around an application.

3.0 Released

08 Apr 02:36
9fc016a
Compare
Choose a tag to compare

See readme for breakdown of changes

2.0.4 bugfix release

12 Jan 15:31
Compare
Choose a tag to compare
  • Better PHP7 support
  • Fixes bug #134 - uses default value if no concrete class is available for hinted interface

3.0 Development release

30 Apr 17:09
Compare
Choose a tag to compare
Pre-release

This is a development release of 3.0. It is not backwards compatible. Please see README.md for a list of changes.

2.0.3 - Minor bugfixes

18 Dec 10:44
Compare
Choose a tag to compare
Renamed file to match class name

2.0.2 For PHP 5.4 - PHP 5.5

13 Oct 09:44
Compare
Choose a tag to compare

Fixed a bug where the autoloader was being triggered with lowercase class names