Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

Commit f0064cd

Browse files
committed
Merge pull request #56 from wmde/release052
Release 0.5.2
2 parents 4a2756c + f441fb8 commit f0064cd

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

DataTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
return 1;
1515
}
1616

17-
define( 'DataTypes_VERSION', '0.5.1' );
17+
define( 'DataTypes_VERSION', '0.5.2' );
1818

1919
if ( defined( 'MEDIAWIKI' ) ) {
2020
include __DIR__ . '/DataTypes.mw.php';

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ for the [Wikidata project](https://wikidata.org/).
5151

5252
## Release notes
5353

54+
### 0.5.2 (2016-02-17)
55+
* Fixed cache invalidation in `DataTypesModule`.
56+
* Fixed `DataTypeFactory` to report invalid arguments on construction.
57+
5458
### 0.5.1 (2015-10-20)
5559
* `DataTypeFactory::getTypes()` now returns array with typeId keys as documented
5660

src/Modules/DataTypesModule.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace DataTypes\Modules;
44

5+
use DataTypes\DataType;
56
use DataTypes\DataTypeFactory;
67
use Exception;
78
use FormatJson;
@@ -183,6 +184,7 @@ public function getMessages() {
183184
*/
184185
public function getDefinitionSummary( ResourceLoaderContext $context ) {
185186
$summary = parent::getDefinitionSummary( $context );
187+
186188
$summary[] = array(
187189
'dataHash' => sha1( json_encode( array_keys( $this->dataTypes ) ) )
188190
);

0 commit comments

Comments
 (0)