Skip to content

Commit 178214f

Browse files
committed
Merge pull request #17 from chrisryan/master
Update library to work on Php 7
2 parents 4a1b921 + bc83048 commit 178214f

File tree

6 files changed

+428
-264
lines changed

6 files changed

+428
-264
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/coverage/
22
/vendor/
3+
clover.xml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ $compute = function() {
115115
$result = $memoize->memoizeCallable('myLongOperation', $compute);
116116
```
117117

118-
### Null
118+
### Never
119119
This memoizer does not actually memoize anything - it always calls the
120120
`$compute` function. It is useful for testing and can also be used when you
121121
disable memoization for debugging, etc. because you can swap your real memoizer
122122
out for this one and everything will still work.
123123

124124
#### Example
125125
```php
126-
$memoize = new \DominionEnterprises\Memoize\Null();
126+
$memoize = new \DominionEnterprises\Memoize\Never();
127127

128128
$compute = function() {
129129
// Perform some long operation that you want to memoize

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"license": "MIT",
1313
"require": {
14-
"php": "~5.4"
14+
"php": "~5.4 || ~7.0"
1515
},
1616
"require-dev": {
1717
"predis/predis": "~1.0",

0 commit comments

Comments
 (0)