Skip to content

Releases: Level-2/Dice

4.0.4

Choose a tag to compare

@TRPB TRPB released this 17 Jan 23:30
e04c98d

Bugfixes:

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

PHP 8 support

Choose a tag to compare

@TRPB TRPB released this 20 Apr 14:07
  • Removes call to deprecated ReflectionType::getClass()
  • Supports nullable types

4.0.2

Choose a tag to compare

@TRPB TRPB released this 28 Jan 13:54
  • 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

Choose a tag to compare

@TRPB TRPB released this 13 Jun 15:09
  • 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

Choose a tag to compare

@TRPB TRPB released this 15 Nov 18:11

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

Choose a tag to compare

@TRPB TRPB released this 08 Apr 02:36
9fc016a

See readme for breakdown of changes

2.0.4 bugfix release

Choose a tag to compare

@TRPB TRPB released this 12 Jan 15:31
  • Better PHP7 support
  • Fixes bug #134 - uses default value if no concrete class is available for hinted interface

3.0 Development release

Pre-release

Choose a tag to compare

@TRPB TRPB released this 30 Apr 17:09

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

Choose a tag to compare

@TRPB TRPB released this 18 Dec 10:44
Renamed file to match class name

2.0.2 For PHP 5.4 - PHP 5.5

Choose a tag to compare

@TRPB TRPB released this 13 Oct 09:44

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